hk: fix phi ordering
undefined argument order means phis are busted. fixes crash starting castle crashers with an i386 gcc build of hk. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
committed by
Marge Bot
parent
c69fd49728
commit
0322ccda4c
@@ -587,8 +587,11 @@ build_image_copy_shader(const struct vk_meta_image_copy_key *key)
|
||||
nir_pop_if(b, NULL);
|
||||
|
||||
if (key->block_based) {
|
||||
nir_store_local_pixel_agx(b, nir_if_phi(b, value1, value2),
|
||||
nir_imm_int(b, 1 << s), lid, .base = 0,
|
||||
/* Must define the phi first so we validate. */
|
||||
nir_def *phi = nir_if_phi(b, value1, value2);
|
||||
nir_def *mask = nir_imm_int(b, 1 << s);
|
||||
|
||||
nir_store_local_pixel_agx(b, phi, mask, lid, .base = 0,
|
||||
.write_mask = 0xf, .format = isa_format,
|
||||
.explicit_coord = true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user