Chromium Code Reviews
DescriptionForce GPU switch with CGLSetVirtualScreen only for compositor
Only compositor contexts are known to use only the subset of GL
that can be safely migrated between the iGPU and the dGPU. Mark
those contexts as safe to forcibly transition between the GPUs.
In particular, Intel GPUs support using a GL_STENCIL_INDEX8
attachment with no depth buffer, but NV GPUs don't. Skia will use
this FBO combo if it is listed as available.
If we use this combo on the iGPU and then forcibly transition the
GL context using this combo from the iGPU to the dGPU, corruption
occurs on NV, and a hang happens on AMD.
Further, if we cache complete FBO combos, then we will cache this
combo as valid when using the iGPU, and claim that it's valid when
using the dGPU, resulting in GL errors.
BUG=180876
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193302
Patch Set 1 #
Total comments: 8
Patch Set 2 : Incorporate reiew feedback #
Total comments: 5
Patch Set 3 : Fix bug id #Patch Set 4 : Fix alphabetization (L, M, N, O...) #Patch Set 5 : Only transition compositor contexts #
Total comments: 10
Patch Set 6 : Incorporate review feedback #Patch Set 7 : Incorporate review feedback #Patch Set 8 : Add TODO #Patch Set 9 : Set upstream correctly #Patch Set 10 : Clean up branching mess #
Messages
Total messages: 28 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||