DescriptionEnsure alpha channel in backbuffer is correct with DirectComposition.
gles2_conform_test runs with the command buffer emulating an RGB backbuffer on top of RGBA. The backbuffer was initially being cleared correctly to 1.0 alpha, but after the first swap a buffer with alpha 0.0 was returned, which caused the test to fail.
Instead in this case after the swap the command buffer should set a flag that the backbuffer needs to be cleared before the next draw; the backbuffer clearing code can handle setting alpha to 1.0. Resize also needs to force a clear, but swaps afterwards will return a backbuffer that's been used before and has been cleared correctly.
BUG=524838
Committed: https://crrev.com/2634dd83a2ba68f4dd33c5e5bbc7ffde3ba87845
Cr-Commit-Position: refs/heads/master@{#369912}
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : #
Messages
Total messages: 13 (6 generated)
|