Mesa (master): d3d12: lower bitfield_extract to shifts
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 14:10:09 UTC 2020
Module: Mesa
Branch: master
Commit: f9e4c0ada15b28118d65d119c508a7dc42da038f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9e4c0ada15b28118d65d119c508a7dc42da038f
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Tue Dec 1 13:13:20 2020 +0100
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 at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7855>
---
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,
More information about the mesa-commit
mailing list