Mesa (master): v3d: Fix the argument type for vir_BRANCH().

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 17 17:56:49 UTC 2018


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

Author: Eric Anholt <eric at anholt.net>
Date:   Sat Dec 15 22:59:23 2018 -0800

v3d: Fix the argument type for vir_BRANCH().

Apparently this has been spewing warnings for Jason's clang, but not my
gcc.

---

 src/broadcom/compiler/v3d_compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h
index 3a2b9db115..797c687186 100644
--- a/src/broadcom/compiler/v3d_compiler.h
+++ b/src/broadcom/compiler/v3d_compiler.h
@@ -1078,7 +1078,7 @@ vir_LOAD_IMM_I2(struct v3d_compile *c, uint32_t val)
 */
 
 static inline struct qinst *
-vir_BRANCH(struct v3d_compile *c, enum v3d_qpu_cond cond)
+vir_BRANCH(struct v3d_compile *c, enum v3d_qpu_branch_cond cond)
 {
         /* The actual uniform_data value will be set at scheduling time */
         return vir_emit_nondef(c, vir_branch_inst(cond, vir_uniform_ui(c, 0)));




More information about the mesa-commit mailing list