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 <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24152>
This commit is contained in:
Pavel Ondračka 2023-07-14 08:22:23 +02:00 committed by Marge Bot
parent c577655f8c
commit c86e1b97a3

View 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++;