From 5da232581c0b09d5f8b7de6b0b7a056c89f216c2 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 7 Jan 2022 11:10:25 +0100 Subject: [PATCH] shader: require GPU_shaders5 when gs_num_invocations is given Fixes a compile error: vrend_compile_shader: context error reported 7 "deqp-gles31" Illegal shader 0 shader failed to compile 0:3(33): error: GL_ARB_gpu_shader5 invocations qualifier specified 1: #version 150 2: #extension GL_ARB_shader_bit_encoding : require 3: layout(triangles, invocations = 2) in; 4: layout(points, max_vertices = 3) out; ... Signed-off-by: Gert Wollny Reviewed-by: John Bates --- src/vrend_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 38412cb..7d56dbe 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1731,6 +1731,7 @@ iter_property(struct tgsi_iterate_context *iter, break; case TGSI_PROPERTY_GS_INVOCATIONS: ctx->gs_num_invocations = prop->u[0].Data; + ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5; break; case TGSI_PROPERTY_NUM_CLIPDIST_ENABLED: ctx->shader_req_bits |= SHADER_REQ_CLIP_DISTANCE;