diff options
author | Ian Romanick <[email protected]> | 2019-03-20 13:42:46 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2019-05-14 11:38:22 -0700 |
commit | e2ad047779b02b48d35de8adaf92feed0f58aa3e (patch) | |
tree | c7fb8cd8c4f79cc2c3157c3d74e978167a0d1836 /src/compiler/nir/nir_opt_algebraic.py | |
parent | 5116646a7636ebc99714d1a0cc41cd402a915220 (diff) |
nir/search: Don't compare 8-bit or 1-bit constants with floats
Without this, adding an algebraic rule like
(('bcsel', ('flt', a, 0.0), 0.0, ...), ...),
will cause assertion failures inside nir_src_comp_as_float in
GTF-GL46.gtf21.GL.lessThan.lessThan_vec3_frag (and related tests) from
the OpenGL CTS and shaders/closed/steam/witcher-2/511.shader_test from
shader-db.
All of these cases have some code that ends up like
('bcsel', ('flt', a, 0.0), 'b@1', ...)
When the 'b@1' is tested, nir_src_comp_as_float fails because there's
no such thing as a 1-bit float.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_algebraic.py')
0 files changed, 0 insertions, 0 deletions