Commit 4cfdd425 authored by José Casanova Crespo's avatar José Casanova Crespo

vc4: Add missing load_ubo set_align in yuv_blit fs.

Fixes: e78a7a18 ("nir: Assert memory loads are aligned")
Reviewed-by: Eric Anholt's avatarEric Anholt <>
Tested-by: Piotr Oniszczuk's avatarPiotr Oniszczuk <>
Part-of: <!7160>
parent f91b2fe3
......@@ -299,6 +299,7 @@ static void *vc4_get_yuv_fs(struct pipe_context *pctx, int cpp)
nir_ssa_dest_init(&load->instr, &load->dest, load->num_components, 32, NULL);
load->src[0] = nir_src_for_ssa(one);
load->src[1] = nir_src_for_ssa(nir_iadd(&b, x_offset, y_offset));
nir_intrinsic_set_align(load, 4, 0);
nir_builder_instr_insert(&b, &load->instr);
nir_store_var(&b, color_out,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment