From e363b2a77fe0810870b85bb0f87b0b450f2ca67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 1 Jun 2023 18:43:24 +0200 Subject: [PATCH] r300: simplify ntr_try_store_in_tgsi_output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r300 doesn't support anything besides vertex and fragment shaders. Signed-off-by: Pavel Ondračka Reviewed-by: Emma Anholt Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 0997efd2d67..880914ba6a3 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -629,18 +629,6 @@ ntr_try_store_in_tgsi_output_with_use(struct ntr_compile *c, { *dst = ureg_dst_undef(); - switch (c->s->info.stage) { - case MESA_SHADER_FRAGMENT: - case MESA_SHADER_VERTEX: - break; - default: - /* tgsi_exec (at least) requires that output stores happen per vertex - * emitted, you don't get to reuse a previous output value for the next - * vertex. - */ - return false; - } - if (src->is_if) return false;