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

Author: Faith Ekstrand <[email protected]>
Date:   Thu Aug 24 11:56:35 2023 -0500

nouveau/mme: Fix a compile warning

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24840>

---

 src/nouveau/mme/tests/mme_runner.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nouveau/mme/tests/mme_runner.cpp 
b/src/nouveau/mme/tests/mme_runner.cpp
index 80e40d0c4d3..8dc9926b567 100644
--- a/src/nouveau/mme/tests/mme_runner.cpp
+++ b/src/nouveau/mme/tests/mme_runner.cpp
@@ -142,7 +142,7 @@ mme_hw_runner::submit_push()
 #if NVK_NEW_UAPI == 1
    struct drm_nouveau_exec_push push = {
       .va = push_bo->offset,
-      .va_len = nv_push_dw_count(&this->push) * 4,
+      .va_len = (uint32_t)nv_push_dw_count(&this->push) * 4,
    };
 
    struct drm_nouveau_sync sync = {

Reply via email to