BlamKiwi / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Dynamically choose DXGI texture formats based on D3D11 device capabilities #1002

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
D3D11 devices support different formats based on the devices' capabilities. For 
example, higher feature levels support new formats, DXGI1.2 enables new 
formats, formats such as BGRA4444 are optional etc.

ANGLE should use these formats if they're available, but fall back to other 
formats if they're not.

Original issue reported on code.google.com by aukin...@microsoft.com on 13 May 2015 at 8:36

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/d63f08fcc32ea17bac2b025f0ad3261664ff79c9

commit d63f08fcc32ea17bac2b025f0ad3261664ff79c9
Author: Austin Kinross <aukinros@microsoft.com>
Date: Thu May 21 17:22:04 2015

In D3D11, check for 16-bit texture support and use if possible

BUG=angleproject:1002

Change-Id: I36a5ee774b38e9865b2eb6c6789afd316c4eff16
Reviewed-on: https://chromium-review.googlesource.com/272061
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Tested-by: Austin Kinross <aukinros@microsoft.com>

[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/tests/angle_end2en
d_tests.gypi
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/d3d11/Renderer11.cpp
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/d3d11/formatutils11.cpp
[add] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/tests/gl_tests/Six
teenBppTextureTest.cpp
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/loadimage.cpp
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/common/mathutil.h
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/loadimage.h
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/d3d11/Renderer11.h
[modify] 
http://crrev.com/d63f08fcc32ea17bac2b025f0ad3261664ff79c9/src/libANGLE/renderer/
d3d/d3d11/Clear11.cpp

Original comment by bugdroid1@chromium.org on 26 May 2015 at 7:17

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/673115d9cc4251cd690e14a98ef0c717ba9de0b9

commit 673115d9cc4251cd690e14a98ef0c717ba9de0b9
Author: Austin Kinross <aukinros@microsoft.com>
Date: Thu May 28 16:27:57 2015

In D3D11, check for 16-bit texture support and use if possible

BUG=angleproject:1002

Changed since last failed 16-bit patch:
- Disabled usage of 16-bit DXGI textures on all Intel cards
- Added DXGI->GL conversion entries for 16-bit formats, which
  fixes FBO readback issues. The ES CTS and dEQP tests which
  failed with the last patch now pass.

Change-Id: Ib66abf73f23dbb4329f0a32d7f3dafbbc23e6c08
Reviewed-on: https://chromium-review.googlesource.com/273712
Tested-by: Austin Kinross <aukinros@microsoft.com>
Reviewed-by: Geoff Lang <geofflang@chromium.org>

[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/tests/angle_end2en
d_tests.gypi
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/d3d11/Renderer11.cpp
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/d3d11/formatutils11.cpp
[add] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/tests/gl_tests/Six
teenBppTextureTest.cpp
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/loadimage.cpp
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/common/mathutil.h
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/loadimage.h
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/d3d11/Renderer11.h
[modify] 
http://crrev.com/673115d9cc4251cd690e14a98ef0c717ba9de0b9/src/libANGLE/renderer/
d3d/d3d11/Clear11.cpp

Original comment by bugdroid1@chromium.org on 1 Jun 2015 at 7:26

GoogleCodeExporter commented 9 years ago
The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/405f3471b16200d46eb453071e8989165458bfbf

commit 405f3471b16200d46eb453071e8989165458bfbf
Author: Austin Kinross <aukinros@microsoft.com>
Date: Thu Jun 04 20:09:06 2015

In D3D11, check for 16-bit texture support and use if possible

BUG=angleproject:1002

The last patch added new tests which failed on some Intel Win7
machines. This was due to a driver bug. Windows Updates have
been applied to the failing machine, and the tests now pass.

Changes between second and current (third) failed 16-bit patch:
- Reenable usage of 16-bit DXGI textures on all Intel cards
- Disable 16bpp tests on Intel D3D11 until the bots are updated
- Updated Win7 test machine. Tests now pass

Changes between first and second failed 16-bit patch:
- Disabled usage of 16-bit DXGI textures on all Intel cards
- Added DXGI->GL conversion entries for 16-bit formats, which
  fixes FBO readback issues. The ES CTS and dEQP tests which
  failed with the last patch now pass.

Change-Id: Id8ea89bfbc450beea54afdd398956bc97ecf3c01
Reviewed-on: https://chromium-review.googlesource.com/275082
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Austin Kinross <aukinros@microsoft.com>

[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/tests/angle_end2en
d_tests.gypi
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/d3d11/Renderer11.cpp
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/d3d11/formatutils11.cpp
[add] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/tests/gl_tests/Six
teenBppTextureTest.cpp
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/loadimage.cpp
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/common/mathutil.h
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/loadimage.h
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/d3d11/Renderer11.h
[modify] 
http://crrev.com/405f3471b16200d46eb453071e8989165458bfbf/src/libANGLE/renderer/
d3d/d3d11/Clear11.cpp

Original comment by bugdroid1@chromium.org on 12 Jun 2015 at 4:55