summaryrefslogtreecommitdiffstats
path: root/src/compiler/blob.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2019-08-26 13:28:09 -0700
committerJuan A. Suarez Romero <[email protected]>2019-08-29 09:51:14 +0000
commit759afcacd9eee8de364bd328ff8b4ba8214a17e9 (patch)
tree785095a2d588d02661669d72b297faa9aa25689d /src/compiler/blob.c
parent48a671e2696f161090efd8eb3337f04d8af9aa3f (diff)
nir/algrbraic: Don't optimize open-coded bitfield reverse when lowering is enabled
This caused a problem on Sandybridge where an open-coded bitfieldReverse() function could be optimized to a nir_op_bitfield_reverse that would generate an unsupported BFREV instruction in the backend. This was encountered in some Unreal4 tech demos in shader-db. The bug was not previously noticed because we don't actually try to run those demos on Sandybridge. The fixes tag is a bit a lie. The actual bug was introduced about 26,000 commits earlier in 371c4b3c48f ("nir: Recognize open-coded bitfield_reverse."). Without the NIR lowering pass, the flag needed to avoid the optimization does not exist. Hopefully nobody will care to fix this on an earlier Mesa release. Reviewed-by: Matt Turner <[email protected]> Fixes: 7afa26d4e39 ("nir: Add lowering for nir_op_bitfield_reverse.") (cherry picked from commit d3fd1c761aab01e06665180ab86c9528c0b285b2)
Diffstat (limited to 'src/compiler/blob.c')
0 files changed, 0 insertions, 0 deletions