mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
anv: silence warning
../src/intel/vulkan/genX_init_state.c: In function ‘gfx9_CreateSampler’: ../src/intel/vulkan/genX_init_state.c:1507:40: warning: ‘border_color_offset’ may be used uninitialized [-Wmaybe-uninitialized] 1507 | sampler_state.BorderColorPointer = border_color_offset; Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41116>
This commit is contained in:
parent
0458a47cf9
commit
c5edb90046
1 changed files with 1 additions and 1 deletions
|
|
@ -1409,7 +1409,7 @@ VkResult genX(CreateSampler)(
|
|||
|
||||
sampler->n_planes = ycbcr_info ? ycbcr_info->n_planes : 1;
|
||||
|
||||
uint32_t border_color_offset;
|
||||
uint32_t border_color_offset = 0;
|
||||
VkResult result = border_color_load(device, sampler, pCreateInfo, &border_color_offset);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue