Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: src/gpu/vk/GrVkGpu.cpp

Issue 2215353003: Fix vulkan resolve (Closed) Base URL: https://skia.googlesource.com/skia.git@resolveCmd
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkGpu.cpp
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
index 8e204446a2633d3ebede04dd1806dc6321f58bcd..85bfce87679c696ba720e6ff84f6747a5207b6d2 100644
--- a/src/gpu/vk/GrVkGpu.cpp
+++ b/src/gpu/vk/GrVkGpu.cpp
@@ -366,9 +366,7 @@ bool GrVkGpu::onWritePixels(GrSurface* surface,
}
void GrVkGpu::onResolveRenderTarget(GrRenderTarget* target) {
- if (target->needsResolve()) {
- SkASSERT(target->numColorSamples() > 1);
-
+ if (target->needsResolve() && target->numColorSamples() > 1) {
GrVkRenderTarget* rt = static_cast<GrVkRenderTarget*>(target);
SkASSERT(rt->msaaImage());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698