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

[d3d11] Implement GetResourceTiling

When called on a regular resource, native D3D11 will zero
out the return values. We should match this behaviour.
This commit is contained in:
Philip Rebohle 2019-09-16 12:39:28 +02:00
parent 7ba7178d14
commit 72a356fe01
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1448,7 +1448,25 @@ namespace dxvk {
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::err("D3D11Device::GetResourceTiling: Not implemented");
Logger::err("D3D11Device::GetResourceTiling: Tiled resources not supported");
if (pNumTilesForEntireResource)
*pNumTilesForEntireResource = 0;
if (pPackedMipDesc)
*pPackedMipDesc = D3D11_PACKED_MIP_DESC();
if (pStandardTileShapeForNonPackedMips)
*pStandardTileShapeForNonPackedMips = D3D11_TILE_SHAPE();
if (pNumSubresourceTilings) {
if (pSubresourceTilingsForNonPackedMips) {
for (uint32_t i = 0; i < *pNumSubresourceTilings; i++)
pSubresourceTilingsForNonPackedMips[i] = D3D11_SUBRESOURCE_TILING();
}
*pNumSubresourceTilings = 0;
}
}