| SKIP: FAILED |
| |
| ../../src/tint/lang/msl/writer/printer/printer.cc:500 internal compiler error: PixelLocal = struct @align(4) { |
| a:u32 @offset(0) |
| b:i32 @offset(4) |
| c:f32 @offset(8) |
| } |
| |
| In = struct @align(16) { |
| uv:vec4<f32> @offset(0), @location(0) |
| } |
| |
| $B1: { # root |
| %P:ptr<pixel_local, PixelLocal, read_write> = var |
| } |
| |
| %f = @fragment func(%pos:vec4<f32> [@position], %in:In):void { |
| $B2: { |
| %5:ptr<pixel_local, u32, read_write> = access %P, 0u |
| %6:f32 = access %pos, 0u |
| %7:u32 = call %tint_f32_to_u32, %6 |
| %9:u32 = let %7 |
| %10:f32 = access %in, 0u, 0u |
| %11:u32 = call %tint_f32_to_u32, %10 |
| %12:u32 = add %9, %11 |
| %13:u32 = load %5 |
| %14:u32 = add %13, %12 |
| store %5, %14 |
| ret |
| } |
| } |
| %tint_f32_to_u32 = func(%value:f32):u32 { |
| $B3: { |
| %16:u32 = convert %value |
| %17:bool = gte %value, 0.0f |
| %18:u32 = select 0u, %16, %17 |
| %19:bool = lte %value, 4294967040.0f |
| %20:u32 = select 4294967295u, %18, %19 |
| ret %20 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |