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); |
}; |