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

Author: Jason Ekstrand <[email protected]>
Date:   Wed Mar 10 20:36:17 2021 -0600

vulkan/alloc: Use char * for pointer arithmetic

MSVC doesn't like arithmetic on void *.

Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9511>

---

 src/vulkan/util/vk_alloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/util/vk_alloc.h b/src/vulkan/util/vk_alloc.h
index abf99197384..e9842efa928 100644
--- a/src/vulkan/util/vk_alloc.h
+++ b/src/vulkan/util/vk_alloc.h
@@ -199,7 +199,7 @@ vk_multialloc_alloc(struct vk_multialloc *ma,
                     const VkAllocationCallbacks *alloc,
                     VkSystemAllocationScope scope)
 {
-   void *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
+   char *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
    if (!ptr)
       return NULL;
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to