intel/i965: make gen_device_info mutable
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 22 Sep 2016 11:58:11 +0000 (14:58 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 23 Sep 2016 07:11:59 +0000 (10:11 +0300)
commitbc24590f0c579a2528fd94eb8d40dd4ce12eba29
tree0ec5dbc71ec3aa551586005282200b184251d51f
parente60928f4c4bd4484821d83f2b16a910ea9f5f9d9
intel/i965: make gen_device_info mutable

Make gen_device_info a mutable structure so we can update the fields that
can be refined by querying the kernel (like subslices and EU numbers).

This patch does not make any functional change, it just makes
gen_get_device_info() fill a structure rather than returning a const
pointer.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
25 files changed:
src/intel/common/gen_device_info.c
src/intel/common/gen_device_info.h
src/intel/isl/tests/isl_surf_get_image_offset_test.c
src/intel/tools/disasm.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_private.h
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_cs.c
src/mesa/drivers/dri/i965/brw_ff_gs.c
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_state_dump.c
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/drivers/dri/i965/brw_tes.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_cs_state.c
src/mesa/drivers/dri/i965/gen7_l3_state.c
src/mesa/drivers/dri/i965/gen7_urb.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h