fixing bug with NVK

This commit is contained in:
2025-04-17 11:32:32 +02:00
parent 4dcd065338
commit 6ea0ef967f
3 changed files with 2 additions and 8 deletions

View File

@@ -122,7 +122,7 @@ PulseImage VulkanCreateImage(PulseDevice device, const PulseImageCreateInfo* cre
VkImageCreateInfo image_create_info = { 0 };
image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
image_create_info.imageType = VK_IMAGE_TYPE_2D;
image_create_info.imageType = create_infos->type == PULSE_IMAGE_TYPE_3D ? VK_IMAGE_TYPE_3D : VK_IMAGE_TYPE_2D;
image_create_info.extent.width = create_infos->width;
image_create_info.extent.height = create_infos->height;
image_create_info.extent.depth = depth;

View File

@@ -35,11 +35,6 @@ void TestImageCreation()
PulseDestroyImage(device, image);
}
/**
* This test may crash some Nouveau NVK drivers (wtf ???).
* It seems to be comming exclusively from 3D read-only images
*/
#ifndef VULKAN_ENABLED
{
PulseImageCreateInfo image_create_info = { 0 };
image_create_info.type = PULSE_IMAGE_TYPE_3D;
@@ -52,7 +47,6 @@ void TestImageCreation()
TEST_ASSERT_NOT_EQUAL_MESSAGE(image, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
PulseDestroyImage(device, image);
}
#endif
{
PulseImageCreateInfo image_create_info = { 0 };

View File

@@ -60,7 +60,7 @@
ZeroMemory(&line, sizeof(IMAGEHLP_LINE64));
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
for (USHORT i = 0; i < frames; i++)
for(USHORT i = 0; i < frames; i++)
{
DWORD64 address = (DWORD64)(stack[i]);
if(SymFromAddr(process, address, 0, symbol))