shader: add ARB_shader_image_load_store extension when required

For memoryBarrier() which require ARB_shader_image_load_store
extension, we need to add it as required extension, otherwise will get
compile failure for current compute shader version setting.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Zhenyu Wang 5 years ago committed by Gert Wollny
parent 4c5c8b3f77
commit 5bab75922c
  1. 1
      src/vrend_shader.c

@ -5112,6 +5112,7 @@ iter_instruction(struct tgsi_iterate_context *iter,
} else {
if ((val & all_val) == all_val) {
emit_buf(ctx, "memoryBarrier();\n");
ctx->shader_req_bits |= SHADER_REQ_IMAGE_LOAD_STORE;
} else {
if (val & TGSI_MEMBAR_SHADER_BUFFER) {
emit_buf(ctx, "memoryBarrierBuffer();\n");

Loading…
Cancel
Save