Fix msaa on GrVkRenderTarget

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1977113002

Review-Url: https://codereview.chromium.org/1977113002
This commit is contained in:
egdaniel 2016-05-13 13:43:44 -07:00 committed by Commit bot
parent 93bc24e8b0
commit 72ac55f8e0

View File

@ -35,7 +35,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu,
, GrRenderTarget(gpu, desc, kUnified_SampleConfig) , GrRenderTarget(gpu, desc, kUnified_SampleConfig)
, fFramebuffer(nullptr) , fFramebuffer(nullptr)
, fColorAttachmentView(colorAttachmentView) , fColorAttachmentView(colorAttachmentView)
, fMSAAImage(new GrVkImage(info, GrVkImage::kNot_Wrapped)) , fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped))
, fResolveAttachmentView(resolveAttachmentView) , fResolveAttachmentView(resolveAttachmentView)
, fCachedSimpleRenderPass(nullptr) { , fCachedSimpleRenderPass(nullptr) {
SkASSERT(desc.fSampleCnt); SkASSERT(desc.fSampleCnt);
@ -60,7 +60,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu,
, GrRenderTarget(gpu, desc, kUnified_SampleConfig) , GrRenderTarget(gpu, desc, kUnified_SampleConfig)
, fFramebuffer(nullptr) , fFramebuffer(nullptr)
, fColorAttachmentView(colorAttachmentView) , fColorAttachmentView(colorAttachmentView)
, fMSAAImage(new GrVkImage(info, GrVkImage::kNot_Wrapped)) , fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped))
, fResolveAttachmentView(resolveAttachmentView) , fResolveAttachmentView(resolveAttachmentView)
, fCachedSimpleRenderPass(nullptr) { , fCachedSimpleRenderPass(nullptr) {
SkASSERT(desc.fSampleCnt); SkASSERT(desc.fSampleCnt);