[Mesa-dev] [PATCH 0/3] anv/i965: make gen_device_info mutable

Lionel Landwerlin llandwerlin at gmail.com
Thu Sep 22 22:17:13 UTC 2016


Hi,

Kenneth metionned that we might be interested in making gen_device_info
mutable so that its values could be updated (for example after querying the
kernel about the number of EUs and subslices). Here is a first attempt.

I think a follow up series could add the subslices number to gen_device_info
(we only have the slices number at the moment). Also factoring out the
update of gen_device_info into src/intel/common might make sense. Any
comments?

Cheers,

Lionel Landwerlin (3):
  intel/i965: make gen_device_info mutable
  i965: get rid of duplicated values from gen_device_info
  anv: get rid of duplicated values from gen_device_info

 src/intel/common/gen_device_info.c                 | 11 ++--
 src/intel/common/gen_device_info.h                 |  2 +-
 .../isl/tests/isl_surf_get_image_offset_test.c     | 18 ++++--
 src/intel/tools/disasm.c                           |  4 +-
 src/intel/vulkan/anv_allocator.c                   | 15 ++---
 src/intel/vulkan/anv_device.c                      | 65 ++++++++++------------
 src/intel/vulkan/anv_formats.c                     | 16 +++---
 src/intel/vulkan/anv_private.h                     | 13 +----
 src/intel/vulkan/gen7_pipeline.c                   | 11 ++--
 src/intel/vulkan/gen8_pipeline.c                   |  7 ++-
 src/intel/vulkan/genX_pipeline.c                   |  5 +-
 src/mesa/drivers/dri/i965/brw_clip.c               |  4 +-
 src/mesa/drivers/dri/i965/brw_compute.c            |  3 +-
 src/mesa/drivers/dri/i965/brw_context.c            | 26 +++------
 src/mesa/drivers/dri/i965/brw_context.h            | 17 ------
 src/mesa/drivers/dri/i965/brw_cs.c                 |  5 +-
 src/mesa/drivers/dri/i965/brw_ff_gs.c              |  4 +-
 src/mesa/drivers/dri/i965/brw_gs.c                 |  7 ++-
 src/mesa/drivers/dri/i965/brw_sf.c                 |  4 +-
 src/mesa/drivers/dri/i965/brw_state_dump.c         |  2 +-
 src/mesa/drivers/dri/i965/brw_surface_formats.c    |  2 +-
 src/mesa/drivers/dri/i965/brw_tcs.c                |  2 +-
 src/mesa/drivers/dri/i965/brw_tes.c                |  4 +-
 src/mesa/drivers/dri/i965/brw_vs.c                 |  7 ++-
 src/mesa/drivers/dri/i965/brw_vs_state.c           |  3 +-
 src/mesa/drivers/dri/i965/brw_wm.c                 |  5 +-
 src/mesa/drivers/dri/i965/brw_wm_state.c           |  4 +-
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c   | 10 ++--
 src/mesa/drivers/dri/i965/gen6_gs_state.c          |  7 ++-
 src/mesa/drivers/dri/i965/gen6_urb.c               | 11 ++--
 src/mesa/drivers/dri/i965/gen6_vs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen6_wm_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen7_cs_state.c          |  6 +-
 src/mesa/drivers/dri/i965/gen7_ds_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen7_gs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen7_hs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen7_l3_state.c          |  8 +--
 src/mesa/drivers/dri/i965/gen7_urb.c               | 18 +++---
 src/mesa/drivers/dri/i965/gen7_vs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen7_wm_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen8_ds_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen8_gs_state.c          |  5 +-
 src/mesa/drivers/dri/i965/gen8_hs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/gen8_vs_state.c          |  3 +-
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c      |  4 +-
 src/mesa/drivers/dri/i965/intel_screen.c           | 41 +++++++-------
 src/mesa/drivers/dri/i965/intel_screen.h           |  2 +-
 47 files changed, 195 insertions(+), 213 deletions(-)

--
2.9.3


More information about the mesa-dev mailing list