struct intel_region *
intel_region_create_static(intelScreenPrivate *intelScreen,
+ const char *name,
GLuint mem_type,
unsigned int bo_handle,
GLuint offset,
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);
void
intel_region_update_static(intelScreenPrivate *intelScreen,
struct intel_region *region,
+ const char *name,
GLuint mem_type,
unsigned int bo_handle,
GLuint offset,
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);
static struct intel_region *
intel_recreate_static(intelScreenPrivate *intelScreen,
+ const char *name,
struct intel_region *region,
intelRegion *region_desc,
GLuint mem_type)
{
if (region) {
- intel_region_update_static(intelScreen, region, mem_type,
+ intel_region_update_static(intelScreen, region, name, mem_type,
region_desc->bo_handle, region_desc->offset,
region_desc->map, intelScreen->cpp,
region_desc->pitch / intelScreen->cpp,
intelScreen->height);
} else {
- region = intel_region_create_static(intelScreen, mem_type,
+ region = intel_region_create_static(intelScreen, name, mem_type,
region_desc->bo_handle,
region_desc->offset,
region_desc->map, intelScreen->cpp,
intel_recreate_static_regions(intelScreenPrivate *intelScreen)
{
intelScreen->front_region =
- intel_recreate_static(intelScreen,
+ intel_recreate_static(intelScreen, "front",
intelScreen->front_region,
&intelScreen->front,
DRM_BO_FLAG_MEM_TT);
intelScreen->back_region =
- intel_recreate_static(intelScreen,
+ intel_recreate_static(intelScreen, "back",
intelScreen->back_region,
&intelScreen->back,
DRM_BO_FLAG_MEM_TT);
if (intelScreen->third.handle) {
intelScreen->third_region =
- intel_recreate_static(intelScreen,
+ intel_recreate_static(intelScreen, "third",
intelScreen->third_region,
&intelScreen->third,
DRM_BO_FLAG_MEM_TT);
* private buffers.
*/
intelScreen->depth_region =
- intel_recreate_static(intelScreen,
+ intel_recreate_static(intelScreen, "depth",
intelScreen->depth_region,
&intelScreen->depth,
DRM_BO_FLAG_MEM_TT);