Respect kRectsMustMatchForMSAASrc_BlitFramebufferFlag in dst setup
authorEric Karl <ericrk@chromium.org>
Thu, 30 Mar 2017 22:19:07 +0000 (15:19 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 31 Mar 2017 02:13:05 +0000 (02:13 +0000)
commite0ff6ab272dcc5c4d6f3b509da7e0e97acada814
treeba4dcee43373e33f024128e0980d46a81557e759
parent4fc774060036ef04fbc1d92a018e42df8704ff50
Respect kRectsMustMatchForMSAASrc_BlitFramebufferFlag in dst setup

Crurently, when preparing a texture for blitFramebuffer, we ignore the
kRectsMustMatchForMSAASrc_BlitFramebufferFlag, and may attempt to
copy from one src rect to a different dst rect.

This change updates initDescForDstCopy and setupDstTexture to allocate
larger textures if necessary and accomodate this flags requirements.

Bug: 658277
Change-Id: I500f10dba5700f5f7a7acad04bcdbc9ac9994835
Reviewed-on: https://skia-review.googlesource.com/10247
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
include/gpu/GrCaps.h
src/gpu/GrRenderTargetContext.cpp
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/vk/GrVkCaps.cpp
src/gpu/vk/GrVkCaps.h
tests/BlendTest.cpp
tools/gpu/GrTest.cpp