shader: Require glsl 150 when input arrays are used

For instance the GALLIUM_HUD requires this, also when the host doesn't
advertise support for input arrays.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago
parent 92e4678479
commit 9b84a49a1c
  1. 3
      src/vrend_shader.c

@ -899,6 +899,9 @@ iter_declaration(struct tgsi_iterate_context *iter,
ctx->has_sample_input = true;
}
if (ctx->inputs[i].first != ctx->inputs[i].last)
require_glsl_ver(ctx, 150);
switch (ctx->inputs[i].name) {
case TGSI_SEMANTIC_COLOR:
if (iter->processor.Processor == TGSI_PROCESSOR_FRAGMENT) {

Loading…
Cancel
Save