From: Marek Olšák Date: Tue, 1 Sep 2020 22:05:52 +0000 (-0400) Subject: radeonsi: stop using TGSI_PROPERTY_TES_VERTEX_ORDER_CW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59eadb46203b640bd28cde00d5fe93ef30217b75;p=mesa.git radeonsi: stop using TGSI_PROPERTY_TES_VERTEX_ORDER_CW Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index f9fc6423277..a6e5fb8e89b 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -457,8 +457,6 @@ void si_nir_scan_shader(const struct nir_shader *nir, struct si_shader_info *inf info->stage = nir->info.stage; if (nir->info.stage == MESA_SHADER_TESS_EVAL) { - info->properties[TGSI_PROPERTY_TES_VERTEX_ORDER_CW] = !nir->info.tess.ccw; - if (info->base.tess.primitive_mode == GL_ISOLINES) info->base.tess.primitive_mode = GL_LINES; } diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index bb9d16fa0ab..caf526d558f 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -314,7 +314,7 @@ static void si_set_tesseval_regs(struct si_screen *sscreen, const struct si_shad const struct si_shader_info *info = &tes->info; unsigned tes_prim_mode = info->base.tess.primitive_mode; unsigned tes_spacing = info->base.tess.spacing; - bool tes_vertex_order_cw = info->properties[TGSI_PROPERTY_TES_VERTEX_ORDER_CW]; + bool tes_vertex_order_cw = !info->base.tess.ccw; bool tes_point_mode = info->base.tess.point_mode; unsigned type, partitioning, topology, distribution_mode;