[virglrenderer-devel] [PATCH] shader: enable ints for instanceid

Dave Airlie airlied at gmail.com
Thu Jun 14 07:14:52 UTC 2018


From: Dave Airlie <airlied at redhat.com>

---
 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 96dc40e..60b1d02 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -1132,7 +1132,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;
-- 
2.14.3



More information about the virglrenderer-devel mailing list