mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 07:23:35 +00:00
fixing bug with NVK
This commit is contained in:
@@ -122,7 +122,7 @@ PulseImage VulkanCreateImage(PulseDevice device, const PulseImageCreateInfo* cre
|
|||||||
|
|
||||||
VkImageCreateInfo image_create_info = { 0 };
|
VkImageCreateInfo image_create_info = { 0 };
|
||||||
image_create_info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
|
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.width = create_infos->width;
|
||||||
image_create_info.extent.height = create_infos->height;
|
image_create_info.extent.height = create_infos->height;
|
||||||
image_create_info.extent.depth = depth;
|
image_create_info.extent.depth = depth;
|
||||||
|
|||||||
@@ -35,11 +35,6 @@ void TestImageCreation()
|
|||||||
PulseDestroyImage(device, image);
|
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 };
|
PulseImageCreateInfo image_create_info = { 0 };
|
||||||
image_create_info.type = PULSE_IMAGE_TYPE_3D;
|
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()));
|
TEST_ASSERT_NOT_EQUAL_MESSAGE(image, PULSE_NULL_HANDLE, PulseVerbaliseErrorType(PulseGetLastErrorType()));
|
||||||
PulseDestroyImage(device, image);
|
PulseDestroyImage(device, image);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
{
|
{
|
||||||
PulseImageCreateInfo image_create_info = { 0 };
|
PulseImageCreateInfo image_create_info = { 0 };
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
ZeroMemory(&line, sizeof(IMAGEHLP_LINE64));
|
ZeroMemory(&line, sizeof(IMAGEHLP_LINE64));
|
||||||
line.SizeOfStruct = 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]);
|
DWORD64 address = (DWORD64)(stack[i]);
|
||||||
if(SymFromAddr(process, address, 0, symbol))
|
if(SymFromAddr(process, address, 0, symbol))
|
||||||
|
|||||||
Reference in New Issue
Block a user