i965/drm: Drop bo_gem::kflags.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Apr 2017 07:42:30 +0000 (00:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Apr 2017 21:31:43 +0000 (14:31 -0700)
It's always zero now.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_bufmgr_gem.c

index fb02b1258eb9c650782ce5b756c330e4d43fc370..499cd19808f9a34d9761ad60d359973d82ace5ef 100644 (file)
@@ -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;