summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-07-11 23:20:45 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-07-11 23:20:45 +0200
commit8481fa25d246f1968d0a254ee3c6cdd82c60781a (patch)
tree3f012200ef3c934f33db1a4ef2b790fae3141860 /gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h
parent4f5813094dbdf61868a7d0a2135c3c1ae41c602b (diff)
downloadUXP-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/WorkaroundsD3D.h')
-rwxr-xr-xgfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h b/gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h
index 83abab81e..a2faf71d9 100755
--- a/gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h
+++ b/gfx/angle/src/libANGLE/renderer/d3d/WorkaroundsD3D.h
@@ -67,6 +67,11 @@ struct WorkaroundsD3D
// Some drivers (NVIDIA) do not take into account the base level of the texture in the results
// of the HLSL GetDimensions builtin.
bool getDimensionsIgnoresBaseLevel = false;
+
+ // In the Intel driver, data with format DXGI_FORMAT_B5G6R5_UNORM will be parsed incorrectly.
+ // This workaroud will disable B5G6R5 support when it's Intel's driver. By default, we will
+ // use R8G8B8A8 as format.
+ bool disableB5G6R5Support = false;
// On some Intel drivers, HLSL's function texture.Load returns 0 when the parameter Location
// is negative, even if the sum of Offset and Location is in range. This may cause errors when