[Mesa-dev] [PATCH 0/3] cs: Add gl_GlobalInvocationID

Jordan Justen jordan.l.justen at intel.com
Thu Aug 6 11:01:51 PDT 2015


git://people.freedesktop.org/~jljusten/mesa cs-global-id-v1
http://patchwork.freedesktop.org/bundle/jljusten/cs-global-id-v1

For i965, these also depend on the texture sampling series:
http://patchwork.freedesktop.org/bundle/jljusten/cs%20texture%20sampling/

And the gl_LocalInvocationID series:
http://patchwork.freedesktop.org/bundle/jljusten/i965-local-inv-id-v1/

These patches allow piglit's
tests/spec/arb_compute_shader/execution/basic-global-id-atomic.shader_test
to pass.

To test, I set MESA_GL_VERSION_OVERRIDE=4.3,
MESA_GLSL_VERSION_OVERRIDE=430 and
MESA_EXTENSION_OVERRIDE=GL_ARB_compute_shader.

Jordan Justen (3):
  glsl/cs: Add gl_GlobalInvocationID variable
  glsl/cs: Lower gl_GlobalInvocationID variable
  glsl: Mark gl_GlobalInvocationID dependencies as used

 src/glsl/Makefile.sources       |   1 +
 src/glsl/builtin_variables.cpp  |   2 +
 src/glsl/glsl_parser_extras.cpp |  33 ++++++++
 src/glsl/ir_optimization.h      |   1 +
 src/glsl/linker.cpp             |   2 +
 src/glsl/lower_cs_global_id.cpp | 177 ++++++++++++++++++++++++++++++++++++++++
 src/glsl/shader_enums.h         |   1 +
 7 files changed, 217 insertions(+)
 create mode 100644 src/glsl/lower_cs_global_id.cpp

-- 
2.1.4



More information about the mesa-dev mailing list