[Mesa-dev] [PATCH 0/7] Spirv/Anv: Add support for KHR_shader_draw_parameters

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Jan 31 15:00:19 UTC 2017


Hi,

This is another iteration at KHR_shader_draw_parameters. As Jason
mentioned looking at one of the commit in the previous version of this
series, we were missing the emission of gl_DrawIDARB. There is an
interesting dependency between the compiler backend and the frontend
API which is hopefully explained clearly enough in patch 5.

Cheers,

Lionel Landwerlin (7):
  compiler: add missing enums for debug
  spirv: add SPV_KHR_shader_draw_parameters support
  anv: limit vertex buffers to 31
  anv: move BaseVertexID/BaseInstanceID vertex buffer index to 31
  anv: always allocate a vertex element with vertexid or instanceid
  anv: emit DrawID if needed
  anv: enable VK_KHR_shader_draw_parameters

 src/compiler/shader_enums.c        |  2 ++
 src/compiler/spirv/nir_spirv.h     |  1 +
 src/compiler/spirv/spirv_to_nir.c  |  4 ++++
 src/compiler/spirv/vtn_variables.c | 12 +++++++++++
 src/intel/vulkan/anv_device.c      |  8 +++++--
 src/intel/vulkan/anv_pipeline.c    |  1 +
 src/intel/vulkan/anv_private.h     |  2 +-
 src/intel/vulkan/genX_cmd_buffer.c | 43 +++++++++++++++++++++++++++++++++-----
 src/intel/vulkan/genX_pipeline.c   | 41 +++++++++++++++++++++++-------------
 9 files changed, 91 insertions(+), 23 deletions(-)

--
2.11.0


More information about the mesa-dev mailing list