Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/vkd3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lehmann <dadschoorse@gmail.com>2021-11-24 16:46:39 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2021-11-24 17:15:14 +0300
commit4240ab7559e387e63d79d88a5ba1201862f26259 (patch)
treea565b49e8ee7052f5b8857e72a5e87836380bdea
parent7391e3860250eb37298b2f60311190a25b62178b (diff)
vkd3d: Allow B8G8R8A8 UAVs.
This is now allowed according to https://microsoft.github.io/DirectX-Specs/d3d/RelaxedCasting.html Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
-rw-r--r--libs/vkd3d/device.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index f0edfdb8..7c5efa42 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -2856,26 +2856,6 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateCommandList(d3d12_device_ifa
static void vkd3d_determine_format_support_for_feature_level(const struct d3d12_device *device,
D3D12_FEATURE_DATA_FORMAT_SUPPORT *format_support)
{
- /* Direct3D feature levels restrict which formats can be optionally supported. */
- static const D3D12_FEATURE_DATA_FORMAT_SUPPORT blacklisted_format_features[] =
- {
- {DXGI_FORMAT_B8G8R8A8_TYPELESS, D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW,
- D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD | D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE},
- {DXGI_FORMAT_B8G8R8A8_UNORM, D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW,
- D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD | D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE},
- };
- unsigned int i;
-
- for (i = 0; i < ARRAY_SIZE(blacklisted_format_features); ++i)
- {
- if (blacklisted_format_features[i].Format == format_support->Format)
- {
- format_support->Support1 &= ~blacklisted_format_features[i].Support1;
- format_support->Support2 &= ~blacklisted_format_features[i].Support2;
- break;
- }
- }
-
/* TypedUAVLoadAdditionalFormats is an all or nothing set */
if (!device->d3d12_caps.options.TypedUAVLoadAdditionalFormats)
format_support->Support2 &= ~D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD;