Support LUMINANCE, ALPHA, and LUMINANCE_ALPHA in CopyTextureCHROMIUM.

Desktop / Chromium - Kenneth Russell [chromium.org] - 13 July 2017 01:33 EDT

Use the luminance/alpha emulation blitter for CopyTex{Sub}Image2D on the Core Profile to support these.

Simplified the copy shader and fixed bugs in handling of premul/unmul which are tested by the new tests in https://github.com/KhronosGroup/WebGL/pull/2451 .

BUG=733599

Change-Id: Ic52b318d917dd95b8eb2c8fa3ce7b2aaebc24a63 Reviewed-on: https://chromium-review.googlesource.com/567306 Commit-Queue: Kenneth Russell

b642ce1 Support LUMINANCE, ALPHA, and LUMINANCE_ALPHA in CopyTextureCHROMIUM.
..._cmd_apply_framebuffer_attachment_cmaa_intel.cc | 12 +-
.../service/gles2_cmd_copy_texture_chromium.cc | 231 +++++++++++++--------
.../service/gles2_cmd_copy_texture_chromium.h | 137 ++++++------
gpu/command_buffer/service/gles2_cmd_decoder.cc | 26 ++-
4 files changed, 243 insertions(+), 163 deletions(-)

Upstream: git.chromium.org


  • Share