summaryrefslogtreecommitdiff
path: root/src/nouveau
diff options
context:
space:
mode:
authorThomas H.P. Andersen <phomes@gmail.com>2023-10-07 16:45:30 +0200
committerMarge Bot <emma+marge@anholt.net>2023-10-07 23:39:32 +0000
commit52721cfbe80a8e11b1ecb2fbe3e5a02769dc214b (patch)
tree015019e042cee399e02c537cc5883983211c5ec6 /src/nouveau
parent6387c175044b4e15c41095420aed297ea34983e3 (diff)
downloadmesa-52721cfbe80a8e11b1ecb2fbe3e5a02769dc214b.tar.gz
mesa-52721cfbe80a8e11b1ecb2fbe3e5a02769dc214b.tar.bz2
mesa-52721cfbe80a8e11b1ecb2fbe3e5a02769dc214b.zip
nvk: set optimization level to 3
The refactor in a4f8fd9dd53d90307c98c1b4ed15ec1deaa8f8d3 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>
Diffstat (limited to 'src/nouveau')
-rw-r--r--src/nouveau/vulkan/nvk_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nouveau/vulkan/nvk_shader.c b/src/nouveau/vulkan/nvk_shader.c
index d442ac74a6b..ee7df9b9af1 100644
--- a/src/nouveau/vulkan/nvk_shader.c
+++ b/src/nouveau/vulkan/nvk_shader.c
@@ -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