From 9b84a49a1cd6140c18c5cd1577a0a20e71e29a95 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 23 May 2019 20:51:30 +0200 Subject: [PATCH] shader: Require glsl 150 when input arrays are used For instance the GALLIUM_HUD requires this, also when the host doesn't advertise support for input arrays. Signed-off-by: Gert Wollny Reviewed-by: Gurchetan Singh --- src/vrend_shader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index d7e6171..1bee83d 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -899,6 +899,9 @@ iter_declaration(struct tgsi_iterate_context *iter, ctx->has_sample_input = true; } + if (ctx->inputs[i].first != ctx->inputs[i].last) + require_glsl_ver(ctx, 150); + switch (ctx->inputs[i].name) { case TGSI_SEMANTIC_COLOR: if (iter->processor.Processor == TGSI_PROCESSOR_FRAGMENT) {