vkd3d-shader: Silence a spurious -Wmaybe-uninitialized in vsir_program_insert_alpha_test().

This commit is contained in:
Elizabeth Figura 2024-11-13 19:51:42 -06:00 committed by Henri Verbeet
parent 683e11aece
commit 0dc07f5cce
Notes: Henri Verbeet 2024-11-14 14:23:37 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1264

View File

@ -5985,9 +5985,9 @@ static enum vkd3d_result vsir_program_insert_alpha_test(struct vsir_program *pro
{ {
struct vkd3d_shader_message_context *message_context = ctx->message_context; struct vkd3d_shader_message_context *message_context = ctx->message_context;
const struct vkd3d_shader_parameter1 *func = NULL, *ref = NULL; const struct vkd3d_shader_parameter1 *func = NULL, *ref = NULL;
uint32_t colour_signature_idx, colour_temp = ~0u;
static const struct vkd3d_shader_location no_loc; static const struct vkd3d_shader_location no_loc;
enum vkd3d_shader_comparison_func compare_func; enum vkd3d_shader_comparison_func compare_func;
uint32_t colour_signature_idx, colour_temp;
struct vkd3d_shader_instruction *ins; struct vkd3d_shader_instruction *ins;
size_t new_pos; size_t new_pos;
int ret; int ret;