diff options
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_regions.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_regions.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_regions.c b/src/mesa/drivers/dri/intel/intel_regions.c index 7799fdbb11..009e8a3e3e 100644 --- a/src/mesa/drivers/dri/intel/intel_regions.c +++ b/src/mesa/drivers/dri/intel/intel_regions.c @@ -147,6 +147,7 @@ intel_region_release(struct intel_region **region) struct intel_region * intel_region_create_static(intelScreenPrivate *intelScreen, + const char *name, GLuint mem_type, unsigned int bo_handle, GLuint offset, @@ -164,11 +165,11 @@ intel_region_create_static(intelScreenPrivate *intelScreen, if (intelScreen->ttm) { assert(bo_handle != -1); region->buffer = intel_ttm_bo_create_from_handle(intelScreen->bufmgr, - "static region", - bo_handle); + name, + bo_handle); } else { region->buffer = dri_bo_alloc_static(intelScreen->bufmgr, - "static region", + name, offset, pitch * cpp * height, virtual, DRM_BO_FLAG_MEM_TT); @@ -182,6 +183,7 @@ intel_region_create_static(intelScreenPrivate *intelScreen, void intel_region_update_static(intelScreenPrivate *intelScreen, struct intel_region *region, + const char *name, GLuint mem_type, unsigned int bo_handle, GLuint offset, @@ -203,11 +205,11 @@ intel_region_update_static(intelScreenPrivate *intelScreen, if (intelScreen->ttm) { assert(bo_handle != -1); region->buffer = intel_ttm_bo_create_from_handle(intelScreen->bufmgr, - "static region", - bo_handle); + name, + bo_handle); } else { region->buffer = dri_bo_alloc_static(intelScreen->bufmgr, - "static region", + name, offset, pitch * cpp * height, virtual, DRM_BO_FLAG_MEM_TT); |