Module: Mesa
Branch: main
Commit: af55e36d798b91b86795544aac2d9e3983cde207
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=af55e36d798b91b86795544aac2d9e3983cde207

Author: GH Cao <[email protected]>
Date:   Fri Jan 13 01:20:25 2023 +0800

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20676>

---

 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) {

Reply via email to