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

Author: Juan A. Suarez Romero <[email protected]>
Date:   Tue Mar 30 10:57:15 2021 +0200

broadcom/compiler: fix unused value

Do not assign to a variable that won't be used.

Fixes CID#1451708 and CID#1451710 "Unused value (UNUSED_VALUE)".

Reviewed-by: Iago Toral Quiroga <[email protected]>
Signed-off-by: Juan A. Suarez Romero <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9910>

---

 src/broadcom/compiler/nir_to_vir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/broadcom/compiler/nir_to_vir.c 
b/src/broadcom/compiler/nir_to_vir.c
index cd806bfc5b4..44a326f606c 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -1599,7 +1599,7 @@ vir_emit_tlb_color_write(struct v3d_compile *c, unsigned 
rt)
                                                               
QUNIFORM_CONSTANT,
                                                               conf);
                         } else {
-                                inst = vir_MOV_dest(c, tlb_reg, r);
+                                vir_MOV_dest(c, tlb_reg, r);
                         }
 
                         if (num_components >= 2)
@@ -1619,7 +1619,7 @@ vir_emit_tlb_color_write(struct v3d_compile *c, unsigned 
rt)
                         }
 
                         if (num_components >= 3)
-                                inst = vir_VFPACK_dest(c, tlb_reg, b, a);
+                                vir_VFPACK_dest(c, tlb_reg, b, a);
                 }
         }
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to