diff options
author | Roland Scheidegger <[email protected]> | 2014-06-18 01:34:49 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2014-06-18 19:52:57 +0200 |
commit | 56335b44417bc3d49625f9637e2b95457f522ad2 (patch) | |
tree | a4910f758a54d84d3548b97108114af08c412b3d /src/glsl/opt_noop_swizzle.cpp | |
parent | 7928b946adbcbbb835c0080967bbb538f6bd35dc (diff) |
gallivm: fix SCALED -> NORM conversions
Such conversions (which are most likely rather pointless in practice) were
resulting in shifts with negative shift counts and shifts with counts the same
as the bit width. This was always undefined in llvm, the code generated was
rather horrendous but happened to work.
So make sure such shifts are filtered out and replaced with something that
works (the generated code is still just as horrendous as before).
This fixes lp_test_format, https://bugs.freedesktop.org/show_bug.cgi?id=73846.
v2: prettify by using build context shift helpers.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/glsl/opt_noop_swizzle.cpp')
0 files changed, 0 insertions, 0 deletions