anv: silence fedora build warning
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 2 Sep 2022 08:53:12 +0000 (11:53 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 09:40:46 +0000 (09:40 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18208>

src/intel/vulkan/anv_allocator.c

index ce64811..823f6c8 100644 (file)
@@ -1102,7 +1102,7 @@ anv_state_pool_alloc_no_vg(struct anv_state_pool *pool,
                                                 pool->block_size,
                                                 &padding);
    /* Every time we allocate a new state, add it to the state pool */
-   uint32_t idx;
+   uint32_t idx = 0;
    UNUSED VkResult result = anv_state_table_add(&pool->table, &idx, 1);
    assert(result == VK_SUCCESS);