Respect kRectsMustMatchForMSAASrc_BlitFramebufferFlag in dst setup
authorEric Karl <ericrk@chromium.org>
Mon, 3 Apr 2017 21:49:05 +0000 (14:49 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 4 Apr 2017 17:26:38 +0000 (17:26 +0000)
commit744808823f635c863d7ca6b4eba652115c92ff85
tree050a0e591c7dd355071a78daa6393d2f5f2f054f
parent8b3f9e64ff6d505036f79aeffd98dea4b648cb46
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: If4489ac3192dcf6f9996494c63821279721d0a12
Reviewed-on: https://skia-review.googlesource.com/11141
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