v3d: Add Compute Shader compilation support

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 12 April 2019 22:59 EDT

While waiting for the CSD UABI to get reviewed, I keep having to rebase the CS patch. Just land the compiler side for now to keep it from diverging.

For now this covers just GLES 3.1 compute shaders, not CL kernels.

6b1c6598250 v3d: Add Compute Shader compilation support.
src/broadcom/compiler/nir_to_vir.c | 8 +-
src/broadcom/compiler/v3d_compiler.h | 6 +
src/broadcom/compiler/vir.c | 34 +++++-
src/gallium/drivers/v3d/v3d_context.h | 11 +-
src/gallium/drivers/v3d/v3d_program.c | 203 +++++++++++++++++++++------------
src/gallium/drivers/v3d/v3d_screen.c | 102 ++++++++++++++++-
src/gallium/drivers/v3d/v3d_screen.h | 2 +
src/gallium/drivers/v3d/v3d_uniforms.c | 15 +++
src/gallium/drivers/v3d/v3dx_draw.c | 4 +-
9 files changed, 302 insertions(+), 83 deletions(-)

Upstream: cgit.freedesktop.org


  • Share