From c86e1b97a376a3c7b7e5acf4062a0de20a826364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Fri, 14 Jul 2023 08:22:23 +0200 Subject: [PATCH] r300: normal instruction can't have presubtract op Only fs have presubtract ops and by the time we gather the stats, all normal instructions were converted to pair ones. Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/radeon_compiler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/radeon_compiler.c b/src/gallium/drivers/r300/compiler/radeon_compiler.c index b4b7398f57e..44a63f3d23e 100644 --- a/src/gallium/drivers/r300/compiler/radeon_compiler.c +++ b/src/gallium/drivers/r300/compiler/radeon_compiler.c @@ -366,8 +366,6 @@ void rc_get_stats(struct radeon_compiler *c, struct rc_program_stats *s) info = rc_get_opcode_info(tmp->U.I.Opcode); if (info->Opcode == RC_OPCODE_BEGIN_TEX) continue; - if (tmp->U.I.PreSub.Opcode != RC_PRESUB_NONE) - s->num_presub_ops++; } else { if (tmp->U.P.RGB.Src[RC_PAIR_PRESUB_SRC].Used) s->num_presub_ops++;