From 13e86f8706e6ceb9a09ee8f016f13c0dfaf463a3 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 2 Feb 2017 17:26:40 -0700 Subject: layers:Add buffer descriptor device limit checks This adds missing checks for max range for storage and uniform buffer updates. Also update database file. --- layers/core_validation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 75a65c0a..ff84729f 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -2122,6 +2122,10 @@ static PIPELINE_LAYOUT_NODE const *getPipelineLayout(layer_data const *my_data, return &it->second; } +VkPhysicalDeviceLimits GetPhysicalDeviceLimits(layer_data const *dev_data) { + return dev_data->phys_dev_properties.properties.limits; +} + // Return true if for a given PSO, the given state enum is dynamic, else return false static bool isDynamic(const PIPELINE_STATE *pPipeline, const VkDynamicState state) { if (pPipeline && pPipeline->graphicsPipelineCI.pDynamicState) { -- cgit v1.2.3