blob: edb63557a2be1d8b9e6b293a603cd8fa8ba3d251 [file] [log] [blame]
SKIP: FAILED
<dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root
%t:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
%s:ptr<handle, sampler, read> = var @binding_point(0, 1)
%a:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 2)
}
%foo = @fragment func(%in:f32 [@location(0)], %coord:vec2<f32> [@location(1)]):i32 [@location(0)] -> %b2 {
%b2 = block {
%7:bool = eq %in, 0.0f
if %7 [t: %b3] { # if_1
%b3 = block { # true
discard
exit_if # if_1
}
}
%8:texture_2d<f32> = load %t
%9:sampler = load %s
%10:vec4<f32> = textureSample %8, %9, %coord
%11:f32 = access %10, 0u
%12:i32 = convert %11
%result:ptr<function, i32, read_write> = var, %12
loop [i: %b4, b: %b5, c: %b6] { # loop_1
%b4 = block { # initializer
%i:ptr<function, i32, read_write> = var, 0i
next_iteration %b5
}
%b5 = block { # body
%15:i32 = load %i
%16:bool = lt %15, 10i
if %16 [t: %b7, f: %b8] { # if_2
%b7 = block { # true
exit_if # if_2
}
%b8 = block { # false
exit_loop # loop_1
}
}
%17:i32 = load %i
%18:i32 = load %result
%19:i32 = add %18, %17
store %result, %19
continue %b6
}
%b6 = block { # continuing
%20:i32 = atomicAdd %a, 1i
store %i, %20
next_iteration %b5
}
}
%21:i32 = load %result
ret %21
}
}
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. *
********************************************************************