vkd3d: Attempt to create linear image without EXTENDED_USAGE.
NVIDIA drivers apparently cannot support EXTENDED_USAGE linear images for whatever reason, so attempt to create these images without the creation flag. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
459cae5673
commit
c0a3fa8adc
|
@ -612,6 +612,17 @@ static HRESULT vkd3d_create_image(struct d3d12_device *device,
|
|||
WARN("Forcing VK_IMAGE_TILING_LINEAR for CPU readable texture.\n");
|
||||
image_info.tiling = VK_IMAGE_TILING_LINEAR;
|
||||
}
|
||||
else if (image_info.flags & VK_IMAGE_CREATE_EXTENDED_USAGE_BIT)
|
||||
{
|
||||
/* Apparently NV drivers do not support EXTENDED_USAGE_BIT on linear images? */
|
||||
image_info.flags &= ~VK_IMAGE_CREATE_EXTENDED_USAGE_BIT;
|
||||
WARN("Linear image not supported, attempting without EXTENDED_USAGE as a workaround ...\n");
|
||||
if (vkd3d_is_linear_tiling_supported(device, &image_info))
|
||||
{
|
||||
WARN("Forcing VK_IMAGE_TILING_LINEAR for CPU readable texture.\n");
|
||||
image_info.tiling = VK_IMAGE_TILING_LINEAR;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue