| SKIP: FAILED |
| |
| <dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: %b1 = block { # root |
| %my_global:ptr<private, vec4<f32>, read_write> = var |
| %my_uniform:ptr<uniform, f32, read> = var @binding_point(0, 0) |
| %my_texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 1) |
| %my_sampler:ptr<handle, sampler, read> = var @binding_point(0, 2) |
| } |
| |
| %foo_member_initialize = func():void -> %b2 { |
| %b2 = block { |
| %vb2:ptr<function, vec2<bool>, read_write> = var |
| %7:f32 = load_vector_element %my_global, 2u |
| %8:bool = neq %7, 0.0f |
| store_vector_element %vb2, 0u, %8 |
| %9:f32 = load %my_uniform |
| %10:bool = eq %9, -1.0f |
| store_vector_element %vb2, 0u, %10 |
| %11:f32 = load %my_uniform |
| %12:bool = eq %11, -1.0f |
| %13:vec2<bool> = construct %12, false |
| store %vb2, %13 |
| %14:bool = load_vector_element %vb2, 0u |
| if %14 [t: %b3] { # if_1 |
| %b3 = block { # true |
| %15:texture_2d<f32> = load %my_texture |
| %16:sampler = load %my_sampler |
| %r:vec4<f32> = textureSampleBias %15, %16, vec2<f32>(0.0f), 0.0f |
| exit_if # if_1 |
| } |
| } |
| ret |
| } |
| } |
| %foo_default_initialize = func():void -> %b4 { |
| %b4 = block { |
| %vb2_1:ptr<function, vec2<bool>, read_write> = var # %vb2_1: 'vb2' |
| %20:f32 = load_vector_element %my_global, 2u |
| %21:bool = neq %20, 0.0f |
| store_vector_element %vb2_1, 0u, %21 |
| %22:f32 = load %my_uniform |
| %23:bool = eq %22, -1.0f |
| store_vector_element %vb2_1, 0u, %23 |
| store %vb2_1, vec2<bool>(false) |
| %24:bool = load_vector_element %vb2_1, 0u |
| if %24 [t: %b5] { # if_2 |
| %b5 = block { # true |
| %25:texture_2d<f32> = load %my_texture |
| %26:sampler = load %my_sampler |
| %r_1:vec4<f32> = textureSampleBias %25, %26, vec2<f32>(0.0f), 0.0f # %r_1: 'r' |
| exit_if # if_2 |
| } |
| } |
| 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. * |
| ******************************************************************** |