forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't enforce attributes for Native GLSurfaces in command decoder
Before this CL validating command decoder did enforce alpha, depth and stencil attributes for GLSurface that is created from window, e.g if GLSurface was created with depth or stencil, but client did specify that it wants no depth, command decoder would enforce that depth isn't used. The only code path that still uses native GLSurfaces with command decoder is WebXR path on Android [1]. We never create real GLSurface with depth or stencil [2], but unit tests still pretend to use real surface. This CL removes the enforcement (so if GLSurface actually has depth buffer then it can be used) and removes unit tests that verified the enforcement. This doesn't change anything for offscreen command buffers. [1] https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:components/webxr/mailbox_to_surface_bridge_impl.cc;l=248-263;drc=2425fac374aaa944c34b2340b8f53c9c7fc49533;bpv=0;bpt=1 [2] https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:gpu/ipc/service/gles2_command_buffer_stub.cc;l=251-253;drc=2425fac374aaa944c34b2340b8f53c9c7fc49533;bpv=0;bpt=1 Bug: 1445523 Change-Id: I948ede9685ab661272cd8bfcd593830a176466c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4575405 Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1151431}
- Loading branch information
Showing
5 changed files
with
14 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters