From e3e077c9d48aaf792f7728a3f394a5e59bbc9f2b 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: --- src/gallium/drivers/r600/r600_pipe_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c index 6d57f35..dba6874 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.c +++ b/src/gallium/drivers/r600/r600_pipe_common.c @@ -1376,7 +1376,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; -- 2.7.4