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

Unified Diff: src/gpu/vk/GrVkPipelineState.h

Issue 1867973002: Limit the size of descriptor pools in vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkPipelineState.h
diff --git a/src/gpu/vk/GrVkPipelineState.h b/src/gpu/vk/GrVkPipelineState.h
index 2533bff383953acf8b205eb3b7bbc9dc2b9c120c..2bfc16cf56bb6dcc2e95ddd6f031780379cb6dc3 100644
--- a/src/gpu/vk/GrVkPipelineState.h
+++ b/src/gpu/vk/GrVkPipelineState.h
@@ -168,7 +168,7 @@ private:
, fDescType(type)
, fCurrentDescriptorSet(0)
, fPool(nullptr) {
- SkASSERT(descCount < (SK_MaxU32 >> 2));
+ SkASSERT(descCount < (kMaxDescSetLimit >> 2));
fMaxDescriptorSets = descCount << 2;
this->getNewPool(gpu);
}
@@ -190,6 +190,8 @@ private:
GrVkDescriptorPool* fPool;
private:
+ static const uint32_t kMaxDescSetLimit = 1 << 10;
+
void getNewPool(GrVkGpu* gpu);
};
« no previous file with comments | « no previous file | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698