nouveau/codegen: Add a 4th optimization level for MemoryOpts
authorGeorge Ouzounoudis <geothrock@gmail.com>
Tue, 15 Aug 2023 16:40:26 +0000 (19:40 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 21 Aug 2023 14:26:34 +0000 (14:26 +0000)
commiteb5cabf3ae6e7a127876f1e66a86809b9441ef4a
treeb5ba1d9d2a7584f8228859fbafb691628d11f0fd
parent2943bc34e93c4df5cf67ba538ead9f31261a891a
nouveau/codegen: Add a 4th optimization level for MemoryOpts

MemoryOpt optimization pass makes some tests in NVK fail. Until its
fixed in codegen or implemented on NIR instead, move it to a 4th level.
This affects the GL driver as well, but less often.

Fixes dEQP-VK.pipeline.monolithic.dynamic_control_points.change_output*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24705>
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
src/nouveau/codegen/nv50_ir_driver.h
src/nouveau/codegen/nv50_ir_peephole.cpp