projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7529e7c
)
vk: Replace some raw casts with safe casts
author
Chad Versace
<chad.versace@intel.com>
Wed, 15 Jul 2015 21:00:21 +0000
(14:00 -0700)
committer
Chad Versace
<chad.versace@intel.com>
Wed, 15 Jul 2015 21:00:21 +0000
(14:00 -0700)
That is, replace some instances of
(VkFoo) foo
with
anv_foo_to_handle(foo)
src/vulkan/intel.c
patch
|
blob
|
history
diff --git
a/src/vulkan/intel.c
b/src/vulkan/intel.c
index 06e79591ee4d84a59356c201a2d32a080cb241cb..6457b211f73777f300ca8e8ececb0921aaa11119 100644
(file)
--- a/
src/vulkan/intel.c
+++ b/
src/vulkan/intel.c
@@
-83,8
+83,8
@@
VkResult anv_CreateDmaBufImageINTEL(
assert(image->extent.height > 0);
assert(image->extent.depth == 1);
- *pMem =
(VkDeviceMemory) mem
;
- *pImage =
(VkImage) image
;
+ *pMem =
anv_device_memory_to_handle(mem)
;
+ *pImage =
anv_image_to_handle(image)
;
return VK_SUCCESS;