shader: enable ints for instanceid

Reviewed-by: Robert Tarasov <tutankhamen@chromium.org>
macos/master
Dave Airlie 7 years ago
parent aabfa38254
commit bb81476211
  1. 2
      src/vrend_shader.c

@ -1055,7 +1055,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
ctx->system_values[i].first = decl->Range.First; ctx->system_values[i].first = decl->Range.First;
if (decl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) { if (decl->Semantic.Name == TGSI_SEMANTIC_INSTANCEID) {
name_prefix = "gl_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) { } else if (decl->Semantic.Name == TGSI_SEMANTIC_VERTEXID) {
name_prefix = "gl_VertexID"; name_prefix = "gl_VertexID";
ctx->shader_req_bits |= SHADER_REQ_INTS; ctx->shader_req_bits |= SHADER_REQ_INTS;

Loading…
Cancel
Save