Mesa (master): nouveau: request ufind_msb64 lowering in the frontend.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 21 19:18:07 UTC 2019
Module: Mesa
Branch: master
Commit: e3b21dfcb118ec097fb48b5c1415c9d2e87beade
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3b21dfcb118ec097fb48b5c1415c9d2e87beade
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Nov 20 09:23:46 2019 +1000
nouveau: request ufind_msb64 lowering in the frontend.
This passes the piglit CL builtin-ulong-clz-1.0.generated.cl
test.
Acked-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
---
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index cb3c5548427..c7779c26548 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -972,7 +972,7 @@ static const nir_shader_compiler_options nir_options = {
.use_interpolated_input_intrinsics = true,
.lower_mul_2x32_64 = true, // TODO
.max_unroll_iterations = 32,
- .lower_int64_options = nir_lower_divmod64, // TODO
+ .lower_int64_options = nir_lower_ufind_msb64|nir_lower_divmod64, // TODO
.lower_doubles_options = nir_lower_dmod, // TODO
.lower_to_scalar = true,
};
More information about the mesa-commit
mailing list