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:
854b33d
)
lavapipe: Fix type narrowing
author
Michel Zou
<xantares09@hotmail.com>
Fri, 19 Mar 2021 09:28:27 +0000
(10:28 +0100)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 19 Mar 2021 18:15:50 +0000
(18:15 +0000)
On win32 long size is 4 and narrows down pointer size on i686
Fixes:
a986d1ed
(lavapipe: add support for KHR_buffer_device_address.)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9706>
src/gallium/frontends/lavapipe/lvp_image.c
patch
|
blob
|
history
diff --git
a/src/gallium/frontends/lavapipe/lvp_image.c
b/src/gallium/frontends/lavapipe/lvp_image.c
index
a743d72
..
457969e
100644
(file)
--- a/
src/gallium/frontends/lavapipe/lvp_image.c
+++ b/
src/gallium/frontends/lavapipe/lvp_image.c
@@
-314,7
+314,7
@@
VKAPI_ATTR VkDeviceAddress VKAPI_CALL lvp_GetBufferDeviceAddress(
{
LVP_FROM_HANDLE(lvp_buffer, buffer, pInfo->buffer);
- return (VkDeviceAddress)(u
nsigned long
)buffer->pmem;
+ return (VkDeviceAddress)(u
intptr_t
)buffer->pmem;
}
VKAPI_ATTR uint64_t VKAPI_CALL lvp_GetBufferOpaqueCaptureAddress(