mesa/src/compiler
Ian Romanick 96c4b135e3 nir/algebraic: Don't put quotes around floating point literals
The quotation marks around 1.0 cause it to be treated as a string
instead of a floating point value.  The generator then treats it as an
arbitrary variable replacement, so any iand involving a ('ineg', ('b2i',
a)) matches.

v2: Remove misleading comment about sized literals (suggested by
Timothy).  Add assertion that the name of a varible is entierly
alphabetic (suggested by Jason).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Timothy Arceri <tarceri@itsqueeze.com> [v1]
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> [v1]
Fixes: 6bcd2af086 ("nir/algebraic: Add some optimizations for D3D-style Booleans")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109075
2018-12-18 23:28:31 -08:00
..
glsl nir: Switch to using 1-bit Booleans for almost everything 2018-12-16 21:03:02 +00:00
nir nir/algebraic: Don't put quotes around floating point literals 2018-12-18 23:28:31 -08:00
spirv nir: Switch to using 1-bit Booleans for almost everything 2018-12-16 21:03:02 +00:00
.gitignore
Android.glsl.gen.mk
Android.glsl.mk
Android.mk
Android.nir.gen.mk Android: fix a missing nir_intrinsics.h error 2018-07-21 08:50:23 +02:00
Android.nir.mk
blob.c compiler/blob: Add blob_skip_bytes 2018-07-09 23:02:33 -07:00
blob.h compiler/blob: Add blob_skip_bytes 2018-07-09 23:02:33 -07:00
builtin_type_macros.h
glsl_types.cpp glsl: add has_implicit_uint_to_int_conversion()-helper 2018-11-02 11:10:36 +01:00
glsl_types.h nir: add 16bit type information to glsl types 2018-07-23 23:16:25 +02:00
Makefile.am configure: allow building with python3 2018-10-31 19:15:50 +00:00
Makefile.glsl.am configure: allow building with python3 2018-10-31 19:15:50 +00:00
Makefile.nir.am nir/algebraic: Add unit tests for bitsize validation 2018-12-05 17:57:40 +01:00
Makefile.sources nir: Add a bool to int32 lowering pass 2018-12-16 21:03:02 +00:00
Makefile.spirv.am
meson.build meson: Build with Python 3 2018-08-10 15:15:09 -07:00
nir_types.cpp nir/large_constants: Properly handle 1-bit bools 2018-12-16 21:03:02 +00:00
nir_types.h nir: Switch to using 1-bit Booleans for almost everything 2018-12-16 21:03:02 +00:00
SConscript
SConscript.glsl
SConscript.nir
SConscript.spirv
shader_enums.c compiler: add SYSTEM_VALUE_VARYING_COORD 2018-08-14 17:59:02 -04:00
shader_enums.h nir: Use a bitfield for image access qualifiers 2018-08-29 14:04:02 -05:00
shader_info.h spirv: Add support for MinLod 2018-12-11 21:26:23 -06:00