mesa/src/compiler
Kenneth Graunke d0cd504046 glsl: Fix locations of variables in patch qualified interface blocks.
As of commit d82f8d9772, we actually
parse and attempt to handle the 'patch' qualifier on interface blocks.

This patch fixes explicit locations for variables in such blocks.
Without it, many program interface query dEQP/CTS tests hit this
assertion in ir_set_program_inouts.cpp

   if (is_patch_generic) {
      assert(idx >= VARYING_SLOT_PATCH0 && idx < VARYING_SLOT_TESS_MAX);
      bitfield = BITFIELD64_BIT(idx - VARYING_SLOT_PATCH0);
   }

because the location was incorrectly based on VARYING_SLOT_VAR0.

Note that most of the tests affected currently fail before they hit
this, due to confusion about what the program interface query name
of those resources should be.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-09-05 17:37:55 -07:00
..
glsl glsl: Fix locations of variables in patch qualified interface blocks. 2016-09-05 17:37:55 -07:00
nir nir/tests: Update the CF tests to not assume fake edges 2016-09-04 20:44:59 -07:00
spirv spirv: replace assert with unreachable 2016-08-30 09:29:26 +10:00
.gitignore mesa: Add .gitignore entries for make check binaries 2016-05-25 09:41:44 -07:00
Android.glsl.gen.mk glsl: Make the generated sources build rules more like NIR 2016-08-17 13:48:25 +01:00
Android.glsl.mk android: libmesa_glsl: add a dependency on libmesa_nir static 2016-06-02 22:31:00 +01:00
Android.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
Android.nir.gen.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
Android.nir.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
builtin_type_macros.h glsl/types: Add a bare "sampler" type 2016-02-13 17:22:36 -08:00
glsl_types.cpp glsl/types: disallow implicit conversions before GLSL 1.20 2016-08-05 14:27:03 +03:00
glsl_types.h glsl: Document and enforce restriction on type values 2016-07-05 17:55:29 -07:00
Makefile.am compiler: Move glsl_to_nir to libglsl.la 2016-05-26 14:13:38 -07:00
Makefile.glsl.am glsl: Use the generated constant expression code 2016-08-30 16:28:03 -07:00
Makefile.nir.am nir: add the SConscript.nir to the tarball 2016-05-30 19:19:01 +01:00
Makefile.sources glsl: Use the generated constant expression code 2016-08-30 16:28:03 -07:00
nir_types.cpp nir: add glsl_dvec_type() helper 2016-07-06 23:20:23 -07:00
nir_types.h nir: add glsl_dvec_type() helper 2016-07-06 23:20:23 -07:00
SConscript glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
SConscript.glsl scons: Fix MinGW cross compilation. 2016-08-31 12:18:34 +01:00
SConscript.nir glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
shader_enums.c glsl: add gl_BoundingBox and associated varying slots 2016-08-30 20:25:15 -04:00
shader_enums.h glsl: add gl_BoundingBox and associated varying slots 2016-08-30 20:25:15 -04:00