pan/lower_framebuffer: Fix bitsize mismatch

No idea why this never manifested before.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10601>
This commit is contained in:
Alyssa Rosenzweig 2021-05-07 12:23:34 -04:00 committed by Marge Bot
parent 91bd4fc613
commit 0cde5ddc79

View file

@ -242,7 +242,7 @@ pan_extend(nir_builder *b, nir_ssa_def *v, unsigned N)
q[j] = nir_channel(b, v, j);
for (unsigned j = v->num_components; j < N; ++j)
q[j] = nir_imm_int(b, 0);
q[j] = nir_imm_intN_t(b, 0, v->bit_size);
return nir_vec(b, q, N);
}