blob: 1567050b4d314ed25869ca32709f6a84d8348b26 [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: $B1: { # root
%u:ptr<uniform, array<mat4x3<f16>, 4>, read> = var @binding_point(0, 0)
%s:ptr<storage, array<mat4x3<f16>, 4>, read_write> = var @binding_point(0, 1)
}
%f = @compute @workgroup_size(1, 1, 1) func():void {
$B2: {
%4:array<mat4x3<f16>, 4> = load %u
%5:void = call %tint_store_and_preserve_padding, %s, %4
%7:ptr<storage, mat4x3<f16>, read_write> = access %s, 1i
%8:ptr<uniform, mat4x3<f16>, read> = access %u, 2i
%9:mat4x3<f16> = load %8
%10:void = call %tint_store_and_preserve_padding_1, %7, %9
%12:ptr<storage, vec3<f16>, read_write> = access %s, 1i, 0i
%13:ptr<uniform, vec3<f16>, read> = access %u, 0i, 1i
%14:vec3<f16> = load %13
%15:vec3<f16> = swizzle %14, zxy
store %12, %15
%16:ptr<storage, vec3<f16>, read_write> = access %s, 1i, 0i
%17:ptr<uniform, vec3<f16>, read> = access %u, 0i, 1i
%18:f16 = load_vector_element %17, 0u
store_vector_element %16, 0u, %18
ret
}
}
%tint_store_and_preserve_padding = func(%target:ptr<storage, array<mat4x3<f16>, 4>, read_write>, %value_param:array<mat4x3<f16>, 4>):void {
$B3: {
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
}
$B5 (%idx:u32): { # body
%22:bool = gte %idx, 4u
if %22 [t: $B7] { # if_1
$B7: { # true
exit_loop # loop_1
}
}
%23:ptr<storage, mat4x3<f16>, read_write> = access %target, %idx
%24:mat4x3<f16> = access %value_param, %idx
%25:void = call %tint_store_and_preserve_padding_1, %23, %24
continue # -> $B6
}
$B6: { # continuing
%26:u32 = add %idx, 1u
next_iteration %26 # -> $B5
}
}
ret
}
}
%tint_store_and_preserve_padding_1 = func(%target_1:ptr<storage, mat4x3<f16>, read_write>, %value_param_1:mat4x3<f16>):void { # %tint_store_and_preserve_padding_1: 'tint_store_and_preserve_padding', %target_1: 'target', %value_param_1: 'value_param'
$B8: {
%29:ptr<storage, vec3<f16>, read_write> = access %target_1, 0u
%30:vec3<f16> = access %value_param_1, 0u
store %29, %30
%31:ptr<storage, vec3<f16>, read_write> = access %target_1, 1u
%32:vec3<f16> = access %value_param_1, 1u
store %31, %32
%33:ptr<storage, vec3<f16>, read_write> = access %target_1, 2u
%34:vec3<f16> = access %value_param_1, 2u
store %33, %34
%35:ptr<storage, vec3<f16>, read_write> = access %target_1, 3u
%36:vec3<f16> = access %value_param_1, 3u
store %35, %36
ret
}
}
unhandled variable address space
********************************************************************
* The tint shader compiler has encountered an unexpected error. *
* *
* Please help us fix this issue by submitting a bug report at *
* crbug.com/tint with the source program that triggered the bug. *
********************************************************************