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

Author: Marek Olšák <[email protected]>
Date:   Fri Dec  8 10:38:21 2023 -0500

mesa: fix _mesa_matrix_is_identity

Fixes: d321b1500bb - mesa: optimize _mesa_matrix_is_identity

Reviewed-by: Adam Jackson <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26599>

---

 src/mesa/main/matrix.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/matrix.h b/src/mesa/main/matrix.h
index 1f157282655..5a60a7cff9c 100644
--- a/src/mesa/main/matrix.h
+++ b/src/mesa/main/matrix.h
@@ -57,7 +57,7 @@ static inline bool
 _mesa_matrix_is_identity(const float *m)
 {
    const uint32_t *u = (const uint32_t *)m;
-   const float one = IEEE_ONE;
+   const uint32_t one = IEEE_ONE;
 
    /* This is faster than memcmp with static identity matrix. Instead of
     * comparing every non-diagonal element against zero, OR them and compare

Reply via email to