nir: fix definition of pack_uvec2_to_uint
Found by inspection. Untested beyond compilation. This also matches the logic used in nir_lower_alu_to_scalar. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
@@ -257,7 +257,7 @@ unpack_4x8("unorm")
|
||||
unpack_2x16("half")
|
||||
|
||||
unop_horiz("pack_uvec2_to_uint", 1, tuint32, 2, tuint32, """
|
||||
dst.x = (src0.x & 0xffff) | (src0.y >> 16);
|
||||
dst.x = (src0.x & 0xffff) | (src0.y << 16);
|
||||
""")
|
||||
|
||||
unop_horiz("pack_uvec4_to_uint", 1, tuint32, 4, tuint32, """
|
||||
|
||||
Reference in New Issue
Block a user