summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test/copy-texture-tests.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-29 11:32:53 +0800
committerGitHub <noreply@github.com>2023-04-29 11:32:53 +0800
commit5adecbe837d27cf4e0a554ae13a0338743a8cb4b (patch)
treec1e791427a2b57165f950f5df264bbaca551ccaf /tools/gfx-unit-test/copy-texture-tests.cpp
parent5df7ada451a993efff2b80bb1af2d8c7579ba00b (diff)
vkd3d and dxvk integration (#2823)
* Add d3d sources for linux builds * Return NOT_IMPLEMENTED for shared handle support on Linux * Enable DirectX api on Linux * Do not report DX11 support without FXC * Initial version of SynchAPI emulation * Neaten dx library name handling * Neaten and use posix-synchapi * Add premake option for DirectX on Vulkan * s/SLANG_ENABLE_VKD3D_PROTON/SLANG_ENABLE_VKD3D * Skip failing tests on vkd3d * Regenerate vs projects * Silence unused var warning
Diffstat (limited to 'tools/gfx-unit-test/copy-texture-tests.cpp')
-rw-r--r--tools/gfx-unit-test/copy-texture-tests.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/copy-texture-tests.cpp b/tools/gfx-unit-test/copy-texture-tests.cpp
index 6a9d39d22..0129dd818 100644
--- a/tools/gfx-unit-test/copy-texture-tests.cpp
+++ b/tools/gfx-unit-test/copy-texture-tests.cpp
@@ -744,12 +744,23 @@ namespace gfx_test
template<typename T>
void copyTextureTestImpl(IDevice* device, UnitTestContext* context)
{
+ const bool isVkd3d = SLANG_ENABLE_VKD3D &&
+ strcmp(device->getDeviceInfo().apiName, "Direct3D 12") == 0;
+
// Skip Type::Unknown and Type::Buffer as well as Format::Unknown
// TODO: Add support for TextureCube
for (uint32_t i = 2; i < (uint32_t)ITextureResource::Type::_Count - 1; ++i)
{
for (uint32_t j = 1; j < (uint32_t)Format::_Count; ++j)
{
+ // Fails validation VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251
+ if(isVkd3d && ((Format)j == Format::R32G32B32_TYPELESS ||
+ (Format)j == Format::R32G32B32_FLOAT ||
+ (Format)j == Format::R32G32B32_UINT ||
+ (Format)j == Format::R32G32B32_SINT))
+ {
+ continue;
+ }
auto type = (ITextureResource::Type)i;
auto format = (Format)j;
auto validationFormat = getValidationTextureFormat(format);