mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
01cca01511
commit
e79f905d87
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ struct vx_buffer {
|
|||
extern int vx_dev_init(callbacks_t* callbacks) {
|
||||
if (nullptr == callbacks)
|
||||
return -1;
|
||||
|
||||
|
||||
callbacks->dev_open = [](vx_device_h* hdevice)->int {
|
||||
if (nullptr == hdevice)
|
||||
return -1;
|
||||
|
@ -103,7 +103,7 @@ extern int vx_dev_init(callbacks_t* callbacks) {
|
|||
DBGPRINT("MEM_FREE: hbuffer=%p\n", hbuffer);
|
||||
auto buffer = ((vx_buffer*)hbuffer);
|
||||
auto device = ((vx_device*)buffer->device);
|
||||
vx_mem_access(hbuffer, 0, buffer->size, 0);
|
||||
device->mem_access(buffer->addr, buffer->size, 0);
|
||||
int err = device->mem_free(buffer->addr);
|
||||
delete buffer;
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue