diff options
| author | Yong He <yonghe@outlook.com> | 2022-02-16 22:34:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-16 22:34:20 -0800 |
| commit | d4145519dd86f6d18b07393d989141bda4d4ceb3 (patch) | |
| tree | 656652524093abc1699301913506a906cf8e05c3 /tools/gfx-unit-test/get-supported-resource-states-test.cpp | |
| parent | 505860911a562f25a8ada1bc294786c3a63b848f (diff) | |
Various gfx fixes. (#2132)
* Various gfx fixes.
* Fix test case.
* Fix crash.
* Trigger build
* Trigger build 2
* Fix vulkan unit tests.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test/get-supported-resource-states-test.cpp')
| -rw-r--r-- | tools/gfx-unit-test/get-supported-resource-states-test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gfx-unit-test/get-supported-resource-states-test.cpp b/tools/gfx-unit-test/get-supported-resource-states-test.cpp index d1573d3fd..209cf1ba5 100644 --- a/tools/gfx-unit-test/get-supported-resource-states-test.cpp +++ b/tools/gfx-unit-test/get-supported-resource-states-test.cpp @@ -112,6 +112,12 @@ namespace for (uint32_t i = 1; i < (uint32_t)Format::CountOf; ++i) { auto baseFormat = (Format)i; + FormatInfo info; + gfxGetFormatInfo(baseFormat, &info); + // Ignore 3-channel textures for now since validation layer seem to report unsupported errors there. + if (info.channelCount == 3) + continue; + auto format = gfxIsTypelessFormat(baseFormat) ? convertTypelessFormat(baseFormat) : baseFormat; GFX_CHECK_CALL_ABORT(device->getFormatSupportedResourceStates(format, &formatSupportedStates)); |
