From: Kenneth Graunke Date: Mon, 3 Apr 2017 07:42:30 +0000 (-0700) Subject: i965/drm: Drop bo_gem::kflags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad1b1cce44a04f68b9e294119e3dd92d996d1ffb;p=mesa.git i965/drm: Drop bo_gem::kflags. It's always zero now. Reviewed-by: Kenneth Graunke Acked-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c index fb02b1258eb..499cd19808f 100644 --- a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c @@ -185,8 +185,6 @@ struct _drm_bacon_bo_gem { uint32_t swizzle_mode; unsigned long stride; - unsigned long kflags; - time_t free_time; /** Array passed to the DRM containing relocation information. */ @@ -406,7 +404,7 @@ drm_bacon_add_validate_buffer2(drm_bacon_bo *bo) bufmgr->exec2_objects[index].relocs_ptr = (uintptr_t)bo_gem->relocs; bufmgr->exec2_objects[index].alignment = bo->align; bufmgr->exec2_objects[index].offset = bo->offset64; - bufmgr->exec2_objects[index].flags = bo_gem->kflags; + bufmgr->exec2_objects[index].flags = 0; bufmgr->exec2_objects[index].rsvd1 = 0; bufmgr->exec2_objects[index].rsvd2 = 0; bufmgr->exec_bos[index] = bo; @@ -1017,7 +1015,6 @@ drm_bacon_gem_bo_unreference_final(drm_bacon_bo *bo, time_t time) time); } } - bo_gem->kflags = 0; bo_gem->reloc_count = 0; bo_gem->used_as_reloc_target = false;