diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 23:20:45 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-11 23:20:45 +0200 |
commit | 8481fa25d246f1968d0a254ee3c6cdd82c60781a (patch) | |
tree | 3f012200ef3c934f33db1a4ef2b790fae3141860 /gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp | |
parent | 4f5813094dbdf61868a7d0a2135c3c1ae41c602b (diff) | |
download | UXP-8481fa25d246f1968d0a254ee3c6cdd82c60781a.tar UXP-8481fa25d246f1968d0a254ee3c6cdd82c60781a.tar.gz UXP-8481fa25d246f1968d0a254ee3c6cdd82c60781a.tar.lz UXP-8481fa25d246f1968d0a254ee3c6cdd82c60781a.tar.xz UXP-8481fa25d246f1968d0a254ee3c6cdd82c60781a.zip |
Ad workaround for broken B5G6R5 format in Intel driver.
Diffstat (limited to 'gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp')
-rwxr-xr-x | gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp index dcc2233fc..d03347d25 100755 --- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp +++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp @@ -896,11 +896,19 @@ void Renderer11::populateRenderer11DeviceCaps() } } - hr = mDevice->CheckFormatSupport(DXGI_FORMAT_B5G6R5_UNORM, &(mRenderer11DeviceCaps.B5G6R5support)); - if (FAILED(hr)) + if (getWorkarounds().disableB5G6R5Support) { mRenderer11DeviceCaps.B5G6R5support = 0; } + else + { + hr = mDevice->CheckFormatSupport(DXGI_FORMAT_B5G6R5_UNORM, + &(mRenderer11DeviceCaps.B5G6R5support)); + if (FAILED(hr)) + { + mRenderer11DeviceCaps.B5G6R5support = 0; + } + } hr = mDevice->CheckFormatSupport(DXGI_FORMAT_B4G4R4A4_UNORM, &(mRenderer11DeviceCaps.B4G4R4A4support)); if (FAILED(hr)) |