Mesa (main): llvmpipe: Fix Wpointer-to-int-cast

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 19:18:46 UTC 2021


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

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Thu Dec  2 20:58:30 2021 +0100

llvmpipe: Fix Wpointer-to-int-cast

Fixes: 2771fd4a (gallium, windows: Use HANDLE instead of FD for external objects)
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14021>

---

 src/gallium/drivers/llvmpipe/lp_texture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index f979a165f52..8555b9ec761 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -1103,7 +1103,7 @@ llvmpipe_resource_get_param(struct pipe_screen *screen,
 
       if (!llvmpipe_resource_get_handle(screen, context, resource, &whandle, handle_usage))
          return false;
-      *value = (uint64_t)whandle.handle;
+      *value = (uint64_t)(uintptr_t)whandle.handle;
       return true;
    default:
       break;



More information about the mesa-commit mailing list