Skip to content

Commit

Permalink
nv2a/vk: Fix external memory handle type on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Dec 27, 2024
1 parent edf140a commit da607b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/xbox/nv2a/pgraph/vk/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,11 @@ static void create_display_image(PGRAPHState *pg, int width, int height)

VkExternalMemoryImageCreateInfo external_memory_image_create_info = {
.sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO,
#ifdef WIN32
.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT,
#else
.handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR,
#endif
};
image_create_info.pNext = &external_memory_image_create_info;

Expand Down

0 comments on commit da607b3

Please sign in to comment.