Mesa (master): pan/midgard: Remove unused variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 4 07:41:28 UTC 2020


Module: Mesa
Branch: master
Commit: 9cdd89a34b89973fbe646de5976f190ec7bd8d1c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cdd89a34b89973fbe646de5976f190ec7bd8d1c

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Feb  3 14:35:32 2020 -0500

pan/midgard: Remove unused variable

../src/panfrost/midgard/mir.c: In function ‘mir_bytemask_of_read_components_index’:
../src/panfrost/midgard/mir.c:471:18: warning: unused variable ‘mask’ [-Wunused-variable]
  471 |         uint16_t mask = 0;

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684>

---

 src/panfrost/midgard/mir.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c
index c3f1eaafb00..5241c6334b2 100644
--- a/src/panfrost/midgard/mir.c
+++ b/src/panfrost/midgard/mir.c
@@ -468,8 +468,6 @@ mir_bytemask_of_read_components_single(unsigned *swizzle, unsigned inmask, midga
 uint16_t
 mir_bytemask_of_read_components_index(midgard_instruction *ins, unsigned i)
 {
-        uint16_t mask = 0;
-
         /* Branch writeout uses all components */
         if (ins->compact_branch && ins->writeout && (i == 0))
                 return 0xFFFF;



More information about the mesa-commit mailing list