From 5bab75922c012934dfab79beffc16c1300308575 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Fri, 16 Aug 2019 14:41:19 +0800 Subject: [PATCH] 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 Reviewed-by: Gert Wollny --- src/vrend_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 1279d03..0ea87fa 100644 --- a/src/vrend_shader.c +++ b/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");