diff options
author | Timothy Arceri <tarceri@itsqueeze.com> | 2022-05-06 11:50:42 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-06-04 16:11:49 +0000 |
commit | e5181c2e238e9616c8d23ba67113d5e45e309a4b (patch) | |
tree | 3cca5a9cb7f7102547574cad546ec03060c00816 /src/gallium/drivers/nouveau/nvc0 | |
parent | fa3b6a3d3217722a0411e985f860e165ba85369a (diff) |
nouveau/nv50: disable GLSL IR loop unrolling
NIR loop unrolling is already enabled so just let it do its job.
Shader-db results (nv92):
total gpr in shared programs: 734638 -> 735037 (0.05%)
gpr in affected programs: 11058 -> 11457 (3.61%)
total instructions in shared programs: 6073415 -> 6073398 (<.01%)
instructions in affected programs: 10079 -> 10062 (-0.17%)
total bytes in shared programs: 41837432 -> 41838872 (<.01%)
bytes in affected programs: 252504 -> 253944 (0.57%)
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16366>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 1a37290bfd0..67036444b68 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -1028,7 +1028,8 @@ nvc0_screen_get_compiler_options(struct pipe_screen *pscreen, { struct nvc0_screen *screen = nvc0_screen(pscreen); if (ir == PIPE_SHADER_IR_NIR) - return nv50_ir_nir_shader_compiler_options(screen->base.device->chipset); + return nv50_ir_nir_shader_compiler_options(screen->base.device->chipset, + shader); return NULL; } |