diff --git a/src/gallium/drivers/radeonsi/si_debug_options.h b/src/gallium/drivers/radeonsi/si_debug_options.h index a598bdd7128..a01da8c6378 100644 --- a/src/gallium/drivers/radeonsi/si_debug_options.h +++ b/src/gallium/drivers/radeonsi/si_debug_options.h @@ -7,7 +7,6 @@ OPT_BOOL(debug_disassembly, false, OPT_BOOL(halt_shaders, false, "Halt shaders at the start (will hang)") OPT_BOOL(vs_fetch_always_opencode, false, "Always open code vertex fetches (less efficient, purely for testing)") -OPT_BOOL(prim_restart_tri_strips_only, false, "Only enable primitive restart for triangle strips") OPT_BOOL(no_infinite_interp, false, "Kill PS with infinite interp coeff") OPT_BOOL(clamp_div_by_zero, false, "Clamp div by zero (x / 0 becomes FLT_MAX instead of NaN)") OPT_BOOL(vrs2x2, false, "Enable 2x2 coarse shading for non-GUI elements") diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp index 9e2573c436f..89ac7e990df 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.cpp +++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp @@ -1374,9 +1374,6 @@ static void si_emit_draw_registers(struct si_context *sctx, struct radeon_cmdbuf *cs = &sctx->gfx_cs; unsigned num_patches = HAS_TESS ? sctx->num_patches_per_workgroup : 0; - if (IS_DRAW_VERTEX_STATE) - primitive_restart = false; - if (GFX_VERSION >= GFX10) gfx10_emit_ge_cntl(sctx, num_patches); else @@ -2343,11 +2340,6 @@ static void si_draw(struct pipe_context *ctx, } } - bool primitive_restart = - info->primitive_restart && - (!sctx->screen->options.prim_restart_tri_strips_only || - (prim != PIPE_PRIM_TRIANGLE_STRIP && prim != PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY)); - /* Set the rasterization primitive type. * * This must be done after si_decompress_textures, which can call @@ -2488,6 +2480,8 @@ static void si_draw(struct pipe_context *ctx, sctx->context_roll = true; } + bool primitive_restart = !IS_DRAW_VERTEX_STATE && info->primitive_restart; + /* Use optimal packet order based on whether we need to sync the pipeline. */ if (unlikely(sctx->flags & (SI_CONTEXT_FLUSH_AND_INV_CB | SI_CONTEXT_FLUSH_AND_INV_DB | SI_CONTEXT_PS_PARTIAL_FLUSH | SI_CONTEXT_CS_PARTIAL_FLUSH | diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index 8fd2b366f3e..293971b0ed1 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -834,9 +834,6 @@ TODO: document the other workarounds. - -