mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
zink: Use VK_USE_64_BIT_PTR_DEFINES to check for 64bit platforms.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6605 Cc: mesa-stable Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16853>
This commit is contained in:
parent
b0fe621459
commit
f3c3b8cf2a
1 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ zink_destroy_framebuffer(struct zink_screen *screen,
|
|||
struct zink_framebuffer *fb)
|
||||
{
|
||||
hash_table_foreach(&fb->objects, he) {
|
||||
#if defined(_WIN64) || defined(__x86_64__)
|
||||
#if VK_USE_64_BIT_PTR_DEFINES
|
||||
VKSCR(DestroyFramebuffer)(screen->dev, he->data, NULL);
|
||||
#else
|
||||
VkFramebuffer *ptr = he->data;
|
||||
|
|
@ -60,7 +60,7 @@ zink_init_framebuffer(struct zink_screen *screen, struct zink_framebuffer *fb, s
|
|||
|
||||
struct hash_entry *he = _mesa_hash_table_search_pre_hashed(&fb->objects, hash, rp);
|
||||
if (he) {
|
||||
#if defined(_WIN64) || defined(__x86_64__)
|
||||
#if VK_USE_64_BIT_PTR_DEFINES
|
||||
ret = (VkFramebuffer)he->data;
|
||||
#else
|
||||
VkFramebuffer *ptr = he->data;
|
||||
|
|
@ -90,7 +90,7 @@ zink_init_framebuffer(struct zink_screen *screen, struct zink_framebuffer *fb, s
|
|||
|
||||
if (VKSCR(CreateFramebuffer)(screen->dev, &fci, NULL, &ret) != VK_SUCCESS)
|
||||
return;
|
||||
#if defined(_WIN64) || defined(__x86_64__)
|
||||
#if VK_USE_64_BIT_PTR_DEFINES
|
||||
_mesa_hash_table_insert_pre_hashed(&fb->objects, hash, rp, ret);
|
||||
#else
|
||||
VkFramebuffer *ptr = ralloc(fb, VkFramebuffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue