From bb81476211469b3194dc9785e04d60333924725d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 14 Jun 2018 17:14:16 +1000 Subject: [PATCH] shader: enable ints for instanceid Reviewed-by: Robert Tarasov --- src/vrend_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index da0a0c2..7b2c521 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1055,7 +1055,7 @@ iter_declaration(struct tgsi_iterate_context *iter, ctx->system_values[i].first = decl->Range.First; if (decl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) { name_prefix = "gl_InstanceID"; - ctx->shader_req_bits |= SHADER_REQ_INSTANCE_ID; + ctx->shader_req_bits |= SHADER_REQ_INSTANCE_ID | SHADER_REQ_INTS; } else if (decl->Semantic.Name == TGSI_SEMANTIC_VERTEXID) { name_prefix = "gl_VertexID"; ctx->shader_req_bits |= SHADER_REQ_INTS;