From df6085eb9c65039c9de95c209e59e41096c8d690 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 21 Apr 2023 10:17:44 +0200 Subject: [PATCH] r600/sfn: Lower tess levels to vectors in TCS Thanks @anholt for pointing me in the right direction Fixes: 84006587 glsl: Delete the lower_tess_level Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8884 v2: replace direct call to lowering pass with nir compiler option Signed-off-by: Gert Wollny Part-of: (cherry picked from commit e3e077c9d48aaf792f7728a3f394a5e59bbc9f2b) --- .pick_status.json | 2 +- src/gallium/drivers/r600/r600_pipe_common.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 5f059794062..3bc0bb46a36 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -256,7 +256,7 @@ "description": "r600/sfn: Lower tess levels to vectors in TCS", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "84006587d7e5b87526a9b83135393251afeef777" }, diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index e5762c714bd..38077351559 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++ b/src/gallium/drivers/r600/r600_pipe_common.c @@ -1375,7 +1375,8 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen, .lower_int64_options = ~0, .lower_cs_local_index_to_id = true, .lower_uniforms_to_ubo = true, - .lower_image_offset_to_range_base = 1 + .lower_image_offset_to_range_base = 1, + .vectorize_tess_levels = 1 }; rscreen->nir_options = nir_options;