[virglrenderer-devel] [PATCH 0/3] TGSI_FILE_HW_ATOMIC support

Tomeu Vizoso tomeu.vizoso at collabora.com
Thu Jul 19 13:41:39 UTC 2018


Hi,

just thought of sending this patches even if it's not the best moment to
merge them, just in case anyone is curious. I plan to rebase and resend
once SSBO and image support is merged in master.

The need for this arises from Gallium otherwise implementing atomic
counters with SSBOs and reserving half of the shader blocks for that.
This is problematic because some dEQP tests assume that more than 6
blocks are available when drivers such as i915 provide 12 in the host.

Cheers,

Tomeu

Tomeu Vizoso (3):
  gallium: Add changes needed for TGSI_FILE_HW_ATOMIC
  renderer: Add support for TGSI_FILE_HW_ATOMIC
  shader: Add support for TGSI_FILE_HW_ATOMIC

 src/gallium/auxiliary/tgsi/tgsi_strings.c  |  1 +
 src/gallium/auxiliary/tgsi/tgsi_ureg.c     | 82 +++++++++++++++++++++-
 src/gallium/auxiliary/tgsi/tgsi_ureg.h     |  7 ++
 src/gallium/include/pipe/p_shader_tokens.h |  1 +
 src/gallium/include/pipe/p_state.h         |  1 +
 src/virgl_hw.h                             |  2 +
 src/virgl_protocol.h                       |  8 +++
 src/vrend_decode.c                         | 29 ++++++++
 src/vrend_renderer.c                       | 57 +++++++++++++++
 src/vrend_renderer.h                       |  4 ++
 src/vrend_shader.c                         | 54 +++++++++++++-
 11 files changed, 244 insertions(+), 2 deletions(-)

-- 
2.17.1



More information about the virglrenderer-devel mailing list