blob: d0caa43b9dcf37365ff499f3f381e7e2174ed9d3 [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: Constants = struct @align(4) {
level:i32 @offset(0)
}
Result = struct @align(4) {
values:array<f32> @offset(0)
}
%b1 = block { # root
%constants:ptr<uniform, Constants, read> = var @binding_point(0, 0)
%myTexture:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 1)
%result:ptr<storage, Result, read_write> = var @binding_point(0, 3)
}
%tint_symbol = @compute @workgroup_size(1, 1, 1) func(%GlobalInvocationID:vec3<u32> [@global_invocation_id]):void -> %b2 {
%b2 = block {
%6:u32 = access %GlobalInvocationID, 2u
%7:u32 = mul 4u, %6
%8:u32 = access %GlobalInvocationID, 1u
%9:u32 = mul 2u, %8
%10:u32 = add %7, %9
%11:u32 = access %GlobalInvocationID, 0u
%12:u32 = add %10, %11
%flatIndex:ptr<function, u32, read_write> = var, %12
%14:u32 = load %flatIndex
%15:u32 = mul %14, 1u
store %flatIndex, %15
%16:texture_2d_array<f32> = load %myTexture
%17:vec2<u32> = swizzle %GlobalInvocationID, xy
%18:vec2<i32> = convert %17
%19:vec4<f32> = textureLoad %16, %18, 0i, 0i
%texel:ptr<function, vec4<f32>, read_write> = var, %19
loop [i: %b3, b: %b4, c: %b5] { # loop_1
%b3 = block { # initializer
%i:ptr<function, u32, read_write> = var, 0u
next_iteration %b4
}
%b4 = block { # body
%22:u32 = load %i
%23:bool = lt %22, 1u
if %23 [t: %b6, f: %b7] { # if_1
%b6 = block { # true
exit_if # if_1
}
%b7 = block { # false
exit_loop # loop_1
}
}
%24:u32 = load %flatIndex
%25:u32 = load %i
%26:u32 = add %24, %25
%27:ptr<storage, f32, read_write> = access %result, 0u, %26
%28:f32 = load_vector_element %texel, 0u
store %27, %28
continue %b5
}
%b5 = block { # continuing
%29:u32 = load %i
%30:u32 = add %29, 1u
store %i, %30
next_iteration %b4
}
}
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. *
********************************************************************