arb_gpu_shader5: add support for prim id and samplemask

Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Dave Airlie 7 years ago
parent 5ca68cdb9f
commit 1be2c508be
  1. 8
      src/vrend_shader.c

@ -713,6 +713,14 @@ iter_declaration(struct tgsi_iterate_context *iter,
name_prefix = "gl_InvocationID";
ctx->has_ints = true;
ctx->uses_gpu_shader5 = true;
} else if (decl->Semantic.Name == TGSI_SEMANTIC_SAMPLEMASK) {
name_prefix = "gl_SampleMaskIn[0]";
ctx->has_ints = true;
ctx->uses_gpu_shader5 = true;
} else if (decl->Semantic.Name == TGSI_SEMANTIC_PRIMID) {
name_prefix = "gl_PrimitiveID";
ctx->has_ints = true;
ctx->uses_gpu_shader5 = true;
} else {
fprintf(stderr, "unsupported system value %d\n", decl->Semantic.Name);
name_prefix = "unknown";

Loading…
Cancel
Save