llvmpipe: initialize a local var to fix compiler warning in release build
Signed-off-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
This commit is contained in:
parent
dfb2ea3531
commit
a0ea45fb68
|
@ -301,7 +301,7 @@ llvmpipe_nir_fn_is_linear_compat(const struct nir_shader *shader,
|
|||
nir_tex_instr *tex = nir_instr_as_tex(instr);
|
||||
struct lp_tgsi_texture_info *tex_info = &info->tex[info->num_texs];
|
||||
int texcoord_swizzle[4] = {-1, -1, -1, -1};
|
||||
unsigned coord_fs_input_index;
|
||||
unsigned coord_fs_input_index = 0;
|
||||
|
||||
for (unsigned i = 0; i < tex->num_srcs; i++) {
|
||||
if (tex->src[i].src_type == nir_tex_src_coord) {
|
||||
|
|
Loading…
Reference in New Issue