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

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

Issue 1916563002: Add automatic generation of mipmaps to Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 8 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 | « src/gpu/vk/GrVkPipelineState.cpp ('k') | src/gpu/vk/GrVkResourceProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkRenderTarget.cpp
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp
index 8ad3968d7639295f74d862b5e74069fe1fd46e81..46099f2bd8eb53276188214b78af03bc77cf2412 100644
--- a/src/gpu/vk/GrVkRenderTarget.cpp
+++ b/src/gpu/vk/GrVkRenderTarget.cpp
@@ -145,7 +145,7 @@ GrVkRenderTarget::Create(GrVkGpu* gpu,
// Create Resolve attachment view
resolveAttachmentView = GrVkImageView::Create(gpu, imageResource->fImage, pixelFormat,
- GrVkImageView::kColor_Type);
+ GrVkImageView::kColor_Type, 1);
if (!resolveAttachmentView) {
msaaResource->unref(gpu);
return nullptr;
@@ -157,7 +157,7 @@ GrVkRenderTarget::Create(GrVkGpu* gpu,
// Get color attachment view
const GrVkImageView* colorAttachmentView = GrVkImageView::Create(gpu, colorImage, pixelFormat,
- GrVkImageView::kColor_Type);
+ GrVkImageView::kColor_Type, 1);
if (!colorAttachmentView) {
if (msaaResource) {
resolveAttachmentView->unref(gpu);
« no previous file with comments | « src/gpu/vk/GrVkPipelineState.cpp ('k') | src/gpu/vk/GrVkResourceProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698