r300: normal instruction can't have presubtract op
authorPavel Ondračka <pavel.ondracka@gmail.com>
Fri, 14 Jul 2023 06:22:23 +0000 (08:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 06:37:10 +0000 (06:37 +0000)
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 <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24152>

src/gallium/drivers/r300/compiler/radeon_compiler.c

index b4b7398..44a63f3 100644 (file)
@@ -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++;