radeonsi: don't check ngg_culling != 0 for fast launch because it's tautology

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13048>
This commit is contained in:
Marek Olšák
2021-09-26 03:19:40 -04:00
committed by Marge Bot
parent 678b6cdc8b
commit 1f445e76ae
@@ -2167,6 +2167,7 @@ static void si_draw_vbo(struct pipe_context *ctx,
uint8_t ngg_culling = sctx->viewport0_y_inverted ? rs->ngg_cull_flags_y_inverted :
rs->ngg_cull_flags;
assert(ngg_culling); /* rasterizer state should always set this to non-zero */
/* Use NGG fast launch for certain primitive types.
* A draw must have at least 1 full primitive.
@@ -2176,7 +2177,7 @@ static void si_draw_vbo(struct pipe_context *ctx,
* which decreases performance, decrease the frequency of switching it on/off using
* a high vertex count threshold.
*/
if (!HAS_TESS && ngg_culling && total_direct_count >= 8000 &&
if (!HAS_TESS && total_direct_count >= 8000 &&
!(sctx->screen->debug_flags & DBG(NO_FAST_LAUNCH))) {
if (prim == PIPE_PRIM_TRIANGLES && !index_size) {
ngg_culling |= SI_NGG_CULL_GS_FAST_LAUNCH_TRI_LIST;