[Mesa-dev] [PATCH 0/7] i965/cs: gl_LocalInvocationID support

Jordan Justen jordan.l.justen at intel.com
Mon Aug 3 23:00:04 PDT 2015


git://people.freedesktop.org/~jljusten/mesa i965-local-inv-id-v1

Note: These depend on 'i965/cs: Setup push constant data for uniforms'
which Ben look at, but it still doesn't have an r-b. I've included
that patch here due to the dependency, and since I made a minor change
to it since I last sent it out.

The first patch allows piglit's
tests/spec/arb_compute_shader/execution/basic-uniform-access-atomic.shader_test
to pass.

The remaining 6 patches allow piglit's
tests/spec/arb_compute_shader/execution/basic-local-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 (7):
  i965/cs: Setup push constant data for uniforms
  glsl/cs: Add gl_LocalInvocationID variable
  nir: Add gl_LocalInvocationID variable
  i965/cs: Reserve local invocation id in payload regs
  i965/cs: Initialize gl_LocalInvocationID in push constant data
  i965/cs: Initialize gl_LocalInvocationID from payload
  i965/nir: Support gl_LocalInvocationID variable

 src/glsl/builtin_variables.cpp               |   2 +
 src/glsl/nir/nir_intrinsics.h                |   1 +
 src/glsl/nir/nir_lower_system_values.c       |   3 +
 src/glsl/shader_enums.h                      |   9 ++
 src/mesa/drivers/dri/i965/brw_context.h      |   2 +-
 src/mesa/drivers/dri/i965/brw_cs.cpp         | 228 ++++++++++++++++++++++++++-
 src/mesa/drivers/dri/i965/brw_cs.h           |   5 +
 src/mesa/drivers/dri/i965/brw_defines.h      |   6 +
 src/mesa/drivers/dri/i965/brw_fs.cpp         |  11 ++
 src/mesa/drivers/dri/i965/brw_fs.h           |   2 +
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp     |  16 ++
 src/mesa/drivers/dri/i965/brw_state.h        |   1 +
 src/mesa/drivers/dri/i965/brw_state_upload.c |   2 +
 13 files changed, 283 insertions(+), 5 deletions(-)

-- 
2.1.4



More information about the mesa-dev mailing list