r600/sfn: Set bit size for newly created store intrinsic

Fixes: 1632948a76
  nir: validate src_type of store_output intrinsics, require bit_size >= 16

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29227>
This commit is contained in:
Gert Wollny
2024-05-15 21:42:16 +02:00
committed by Marge Bot
parent e1b40373ce
commit f398f6ab08

View File

@@ -238,6 +238,7 @@ private:
auto store = nir_store_output(b, clip_i, intr->src[1].ssa);
nir_intrinsic_set_write_mask(store, 0xf);
nir_intrinsic_set_base(store, clip_vertex_index);
nir_intrinsic_set_src_type(store, nir_type_float32);
nir_io_semantics semantic = nir_intrinsic_io_semantics(intr);
semantic.location = VARYING_SLOT_CLIP_DIST0 + i;
semantic.no_varying = 1;