Module: Mesa
Branch: main
Commit: 9d162de9a05155e1c4041857a5848842749164cf
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d162de9a05155e1c4041857a5848842749164cf

Author: M Henning <[email protected]>
Date:   Thu Nov 23 14:57:42 2023 -0500

nak: Enable loop unrolling.

This brings The Talos Principle from 9 to 18 fps on my machine.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26626>

---

 src/nouveau/compiler/nak/api.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/nouveau/compiler/nak/api.rs b/src/nouveau/compiler/nak/api.rs
index cf5f73e728e..1c1bf72e776 100644
--- a/src/nouveau/compiler/nak/api.rs
+++ b/src/nouveau/compiler/nak/api.rs
@@ -121,6 +121,7 @@ fn nir_options(dev: &nv_device_info) -> 
nir_shader_compiler_options {
     op.has_sdot_4x8 = dev.sm >= 70;
     op.has_udot_4x8 = dev.sm >= 70;
     op.has_sudot_4x8 = dev.sm >= 70;
+    op.max_unroll_iterations = 32;
 
     op
 }

Reply via email to