radeonsi: stop using TGSI_PROPERTY_TES_VERTEX_ORDER_CW
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2020 22:05:52 +0000 (18:05 -0400)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:16 +0000 (21:25 +0530)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6624>

src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/radeonsi/si_state_shaders.c

index f9fc64232771f3ab98c3dd7871eaf272946f2743..a6e5fb8e89b5c3d2aaf9eca94894fe0a6001c106 100644 (file)
@@ -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;
    }
index bb9d16fa0ab18659e1d2446e803b07c8c07276af..caf526d558f96c63de6821c12d2973f7ac7263c5 100644 (file)
@@ -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;