pan/midgard: Remove unused variable
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 3 Feb 2020 19:35:32 +0000 (14:35 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 4 Feb 2020 07:24:37 +0000 (08:24 +0100)
../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@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@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

index c3f1eaa..5241c63 100644 (file)
@@ -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;