Descriptiongpu: fix CopyTextureCHROMIUM for immutable texture.
We cannot use glCopyTexImage2D on the texture which is allocated by glTexStorage2D [1]
[1] https://www.opengl.org/registry/specs/ARB/texture_storage.txt
The fast path uses glCopyTexSubImage2D instead of glCopyTexImage2D.
In addition, optimize CopyTextureCHROMIUM for GL_TEXTURE_RECTANGLE_ARB,
which is often used by the compositor, so make CopyTextureCHROMIUM use
the fast path.
Committed: https://crrev.com/df36f0aebe453bdbe842c85b331f6f07a24255a2
Cr-Commit-Position: refs/heads/master@{#305268}
Patch Set 1 #
Total comments: 1
Patch Set 2 : #
Total comments: 1
Patch Set 3 : add unittests #
Total comments: 1
Patch Set 4 : add log; "GL_EXT_texture_storage not supported. Skipping test..." #
Messages
Total messages: 17 (3 generated)
|