From af55e36d798b91b86795544aac2d9e3983cde207 Mon Sep 17 00:00:00 2001 From: GH Cao Date: Fri, 13 Jan 2023 01:20:25 +0800 Subject: [PATCH] dzn: Declare debug only root_dwords as ASSERTED Such variable is only used in assert(), so declare it as ASSERTED. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7885 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7234 Signed-off-by: GH Cao Part-of: --- src/microsoft/vulkan/dzn_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_descriptor_set.c b/src/microsoft/vulkan/dzn_descriptor_set.c index 25c92c360b0..15d7d3448e5 100644 --- a/src/microsoft/vulkan/dzn_descriptor_set.c +++ b/src/microsoft/vulkan/dzn_descriptor_set.c @@ -645,7 +645,7 @@ dzn_pipeline_layout_create(struct dzn_device *device, D3D12_ROOT_PARAMETER1 root_params[MAX_ROOT_PARAMS] = { 0 }; D3D12_DESCRIPTOR_RANGE1 *range_ptr = ranges; D3D12_ROOT_PARAMETER1 *root_param; - uint32_t root_dwords = 0; + ASSERTED uint32_t root_dwords = 0; for (uint32_t i = 0; i < MAX_SHADER_VISIBILITIES; i++) { dzn_foreach_pool_type (type) {