tgsi_to_nir: expand vec3 system values to vec4
for nir_intrinsic_load_work_group_id Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
88a511bd42
commit
fad962eddc
|
@ -655,6 +655,9 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index,
|
|||
unreachable("bad system value");
|
||||
}
|
||||
|
||||
if (load->num_components == 3)
|
||||
load = nir_swizzle(b, load, SWIZ(X, Y, Z, Z), 4);
|
||||
|
||||
src = nir_src_for_ssa(load);
|
||||
b->shader->info.system_values_read |=
|
||||
(1 << nir_system_value_from_intrinsic(op));
|
||||
|
|
Loading…
Reference in New Issue