mesa/src/compiler
Timothy Arceri 2a5121bf35 glsl: skip comparison opt when adding vars of different size
The spec allows adding scalars with a vector or matrix. In this case
the opt was losing swizzle and size information.

This fixes a bug with Doom (2016) shaders.

Fixes: 34ec1a24d6 ("glsl: Optimize (x + y cmp 0) into (x cmp -y).")

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2018-06-28 12:15:17 +10:00
..
glsl glsl: skip comparison opt when adding vars of different size 2018-06-28 12:15:17 +10:00
nir nir/opt_if: Remove unneeded phis if we make progress 2018-06-26 10:47:26 -07:00
spirv nir,spirv: Rework function calls 2018-06-22 20:15:58 -07:00
.gitignore nir/spirv: Remove a duplicate spirv2nir from .gitignore 2016-10-04 07:43:15 -07:00
Android.glsl.gen.mk Android: clean-up trailing '\' in make variables 2017-03-22 17:52:06 +00:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01:00
Android.nir.gen.mk android: Use new nir intrinsics python scripts 2018-03-28 14:48:47 +03:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
blob.c blob: Don't set overrun if reading 0 bytes at end of data 2017-10-31 23:36:54 -07:00
blob.h blob: Use intptr_t instead of ssize_t 2017-10-13 15:02:34 -07:00
builtin_type_macros.h glsl_types: vec8/vec16 support 2018-03-25 10:42:54 -04:00
glsl_types.cpp glsl: prevent spurious Valgrind errors when serializing NIR 2018-04-20 09:21:23 +02:00
glsl_types.h mesa: include mtypes.h less 2018-04-12 19:31:30 -04:00
Makefile.am autotools: Include new meson files 2018-04-20 20:26:56 -07:00
Makefile.glsl.am glsl: fold glcpp-test-cr-lf.sh into glcpp-test.sh 2018-06-21 12:09:39 +01:00
Makefile.nir.am nir: Fix a typo in src/compiler/Makefile.nir.am 2018-04-09 08:32:45 -06:00
Makefile.sources nir: Delete lower_io_types 2018-06-22 20:54:00 -07:00
Makefile.spirv.am spirv: autotools: add vtn_gather_types_c.py in distribution tarball 2018-04-10 10:37:46 +02:00
meson.build meson: remove dummy_cpp 2018-04-24 14:08:15 -07:00
nir_types.cpp nir/types: Add a utility wrapper to glsl_type::sampler_index() 2018-06-21 14:25:05 +02:00
nir_types.h nir/types: Add a utility wrapper to glsl_type::sampler_index() 2018-06-21 14:25:05 +02:00
SConscript spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
SConscript.glsl mesa: Remove prog_hash_table.c 2016-09-12 10:48:35 +10:00
SConscript.nir nir: mako all the intrinsics 2018-03-27 08:36:37 -04:00
SConscript.spirv spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
shader_enums.c compiler: Add SYSTEM_VALUE_IS_INDEXED_DRAW and instrinsics 2018-05-02 11:20:40 +02:00
shader_enums.h compiler: Add SYSTEM_VALUE_IS_INDEXED_DRAW and instrinsics 2018-05-02 11:20:40 +02:00
shader_info.h spirv: add/hookup SpvCapabilityStencilExportEXT 2018-06-08 11:15:37 -07:00