v3d: Add support for shader_image_load_store

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 14 January 2019 23:40 EST

This is only exposed on V3D 4.1+, because we didn't have the TMU write operations for images on 3.3 (To do GLES 3.1 there, you have to lower it to SSBO load/stores, which is a problem to solve later).

6281f26f06 v3d: Add support for shader_image_load_store.
src/broadcom/Makefile.sources | 1 +
src/broadcom/compiler/meson.build | 1 +
src/broadcom/compiler/nir_to_vir.c | 48 +++
src/broadcom/compiler/v3d40_tex.c | 182 +++++++++-
src/broadcom/compiler/v3d_compiler.h | 13 +
.../compiler/v3d_nir_lower_image_load_store.c | 390 +++++++++++++++++++++
src/broadcom/compiler/vir.c | 1 +
src/broadcom/compiler/vir_dump.c | 19 +
src/gallium/drivers/v3d/v3d_context.h | 14 +
src/gallium/drivers/v3d/v3d_screen.c | 9 +-
src/gallium/drivers/v3d/v3d_uniforms.c | 68 ++++
src/gallium/drivers/v3d/v3dx_draw.c | 13 +
src/gallium/drivers/v3d/v3dx_state.c | 94 ++++-
13 files changed, 848 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share