blob: 6eb7ab026f68538d82258d7247f1715b751d0e4d [file] [log] [blame]
SKIP: FAILED
../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: S = struct @align(64) {
before:i32 @offset(0)
m:mat4x4<f32> @offset(16)
after:i32 @offset(128)
}
$B1: { # root
%u:ptr<uniform, array<S, 4>, read> = var @binding_point(0, 0)
%s:ptr<storage, array<S, 4>, read_write> = var @binding_point(0, 1)
}
%f = @compute @workgroup_size(1, 1, 1) func():void {
$B2: {
%4:array<S, 4> = load %u
%5:void = call %tint_store_and_preserve_padding, %s, %4
%7:ptr<storage, S, read_write> = access %s, 1i
%8:ptr<uniform, S, read> = access %u, 2i
%9:S = load %8
%10:void = call %tint_store_and_preserve_padding_1, %7, %9
%12:ptr<storage, mat4x4<f32>, read_write> = access %s, 3i, 1u
%13:ptr<uniform, mat4x4<f32>, read> = access %u, 2i, 1u
%14:mat4x4<f32> = load %13
store %12, %14
%15:ptr<storage, vec4<f32>, read_write> = access %s, 1i, 1u, 0i
%16:ptr<uniform, vec4<f32>, read> = access %u, 0i, 1u, 1i
%17:vec4<f32> = load %16
%18:vec4<f32> = swizzle %17, ywxz
store %15, %18
ret
}
}
%tint_store_and_preserve_padding = func(%target:ptr<storage, array<S, 4>, read_write>, %value_param:array<S, 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, S, read_write> = access %target, %idx
%24:S = 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, S, read_write>, %value_param_1:S):void { # %tint_store_and_preserve_padding_1: 'tint_store_and_preserve_padding', %target_1: 'target', %value_param_1: 'value_param'
$B8: {
%29:ptr<storage, i32, read_write> = access %target_1, 0u
%30:i32 = access %value_param_1, 0u
store %29, %30
%31:ptr<storage, mat4x4<f32>, read_write> = access %target_1, 1u
%32:mat4x4<f32> = access %value_param_1, 1u
store %31, %32
%33:ptr<storage, i32, read_write> = access %target_1, 2u
%34:i32 = access %value_param_1, 2u
store %33, %34
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. *
********************************************************************