diff options
author | Ian Romanick <[email protected]> | 2018-12-18 13:28:22 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2018-12-18 23:28:31 -0800 |
commit | 96c4b135e34d0804e41bfbc28fc1b5050c49d71e (patch) | |
tree | 3c148acefbad1ae0826fe0adcaf2b3b8e90e0ac6 /src/intel/vulkan/anv_private.h | |
parent | 0f7ba5758bd8a3e12b8b33ab471336eaa7dd6fbc (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Timothy Arceri <[email protected]> [v1]
Reviewed-by: Timothy Arceri <[email protected]> [v1]
Fixes: 6bcd2af0863 ("nir/algebraic: Add some optimizations for D3D-style Booleans")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109075
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
0 files changed, 0 insertions, 0 deletions