1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[dxgi] Support more formats in the presenter

Should surpress "Unsupported format" warnings in games
based on Unreal Engine 4 and Frostbite Engine.
This commit is contained in:
Philip Rebohle 2018-03-17 09:20:06 +01:00
parent 608cd33a25
commit 3b43c1c183
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 11 additions and 2 deletions

View File

@ -320,6 +320,15 @@ namespace dxvk {
formats.push_back({ VK_FORMAT_B8G8R8A8_SRGB, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
} break;
case DXGI_FORMAT_R10G10B10A2_UNORM: {
formats.push_back({ VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
formats.push_back({ VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
} break;
case DXGI_FORMAT_R16G16B16A16_FLOAT: {
formats.push_back({ VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR });
} break;
default:
Logger::warn(str::format("DxgiPresenter: Unknown format: ", fmt));
}

View File

@ -331,9 +331,9 @@ namespace dxvk {
VkDeviceSize numBytes) {
if (numBytes == 0)
return;
this->renderPassEnd();
auto dstSlice = dstBuffer->subSlice(dstOffset, numBytes);
auto srcSlice = srcBuffer->subSlice(srcOffset, numBytes);