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 <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22622>
(cherry picked from commit e3e077c9d4)
This commit is contained in:
Gert Wollny 2023-04-21 10:17:44 +02:00 committed by Eric Engestrom
parent c7e678b302
commit df6085eb9c
2 changed files with 3 additions and 2 deletions

View file

@ -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"
},

View file

@ -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;