nvk: set optimization level to 3

The refactor in a4f8fd9dd5 changed NV50_PROG_OPTIMIZE
from 3 to 0.

Running with NV50_PROG_OPTIMIZE=0 causes some shaders to not compile. One example is
dEQP-VK.pipeline.monolithic.creation_cache_control.compute_pipelines.duplicate_single_recreate_explicit_caching
which fails with:
"Assertion `insn->src(src0 & FA_SRC_MASK).getFile() == FILE_GPR' failed"
A similar error also happen when testing Serious Sam Fusion 2017

Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25601>
This commit is contained in:
Thomas H.P. Andersen
2023-10-07 16:45:30 +02:00
committed by Marge Bot
parent 6387c17504
commit 52721cfbe8

View File

@@ -73,7 +73,7 @@ get_prog_debug(void)
static uint64_t
get_prog_optimize(void)
{
return debug_get_num_option("NV50_PROG_OPTIMIZE", 0);
return debug_get_num_option("NV50_PROG_OPTIMIZE", 3);
}
uint64_t