projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b2600d
)
llvmpipe: Fix Wpointer-to-int-cast
author
Michel Zou
<xantares09@hotmail.com>
Thu, 2 Dec 2021 19:58:30 +0000
(20:58 +0100)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 6 Dec 2021 19:00:29 +0000
(19:00 +0000)
Fixes:
2771fd4a
(gallium, windows: Use HANDLE instead of FD for external objects)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14021>
src/gallium/drivers/llvmpipe/lp_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index
f979a16
..
8555b9e
100644
(file)
--- 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;