Module: Mesa
Branch: main
Commit: c86e1b97a376a3c7b7e5acf4062a0de20a826364
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c86e1b97a376a3c7b7e5acf4062a0de20a826364

Author: Pavel Ondračka <[email protected]>
Date:   Fri Jul 14 08:22:23 2023 +0200

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24152>

---

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

Reply via email to