shader: Fix the use of enhanced layouts

With the exception of VS inputs and FS outputs the use of components
and  location layout qualifiers also requires the extension
ARB_separate_shader_objects on GL (or GLSL 4.10).

Fixes: 08b3ddded8
   vrend: Signal the guest that indirect arrays are available

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

@ -4392,6 +4392,9 @@ iter_instruction(struct tgsi_iterate_context *iter,
if (require_enhanced_layouts) {
ctx->shader_req_bits |= SHADER_REQ_ENHANCED_LAYOUTS;
/* We could skip this for VS inputs and FS outputs, but if enhanced layouts
* are supported then separate shader objects are probably available too */
ctx->shader_req_bits |= SHADER_REQ_SEPERATE_SHADER_OBJECTS;
}
/* Vertex shader inputs are not send as arrays, but the access may still be

Loading…
Cancel
Save