shader: Make it possible to require shader versions > 150

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-By: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago committed by Gert Wollny
parent dbf5489555
commit 3c195a9a36
  1. 4
      src/vrend_shader.c

@ -4705,7 +4705,9 @@ static void emit_header(struct dump_ctx *ctx)
emit_ver_ext(ctx, "#version 330\n"); emit_ver_ext(ctx, "#version 330\n");
emit_ext(ctx, "ARB_compute_shader", "require"); emit_ext(ctx, "ARB_compute_shader", "require");
} else { } else {
if (ctx->prog_type == TGSI_PROCESSOR_GEOMETRY || if (ctx->glsl_ver_required > 150)
emit_ver_extf(ctx, "#version %d\n", ctx->glsl_ver_required);
else if (ctx->prog_type == TGSI_PROCESSOR_GEOMETRY ||
ctx->prog_type == TGSI_PROCESSOR_TESS_EVAL || ctx->prog_type == TGSI_PROCESSOR_TESS_EVAL ||
ctx->prog_type == TGSI_PROCESSOR_TESS_CTRL || ctx->prog_type == TGSI_PROCESSOR_TESS_CTRL ||
ctx->glsl_ver_required == 150) ctx->glsl_ver_required == 150)

Loading…
Cancel
Save