d3d12: lower bitfield_extract to shifts

This wasn't implemented yet, because we hadn't encountered it yet. But
now it seems we can trigger this, thanks to the nv_copy_depth_to_color
piglit tests.

This makes the test go from crash to fail, which isn't perfect, but it's
better than nothing.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7855>
This commit is contained in:
Erik Faye-Lund 2020-12-01 13:13:20 +01:00 committed by Marge Bot
parent 3a858ecd40
commit f9e4c0ada1
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ nir_options = {
.lower_flrp16 = true,
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_bitfield_extract_to_shifts = true,
.lower_extract_word = true,
.lower_extract_byte = true,
.lower_all_io_to_elements = true,