From f9e4c0ada15b28118d65d119c508a7dc42da038f Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 1 Dec 2020 13:13:20 +0100 Subject: [PATCH] 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 Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index f5fef4f1ce2..a9f2771e3e9 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -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,