瀏覽代碼

v3d: Fix BO stats accounting for imported buffers.

tags/19.0-branchpoint
Eric Anholt 6 年之前
父節點
當前提交
ac333ffa59
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/gallium/drivers/v3d/v3d_bufmgr.c

+ 3
- 0
src/gallium/drivers/v3d/v3d_bufmgr.c 查看文件

@@ -374,6 +374,9 @@ v3d_bo_open_handle(struct v3d_screen *screen,

util_hash_table_set(screen->bo_handles, (void *)(uintptr_t)handle, bo);

screen->bo_count++;
screen->bo_size += bo->size;

done:
mtx_unlock(&screen->bo_handles_mutex);
return bo;

Loading…
取消
儲存