| SKIP: FAILED |
| |
| <dawn>/src/tint/lang/msl/writer/printer/printer.cc:355 internal compiler error: buf0 = struct @align(8) { |
| resolution:vec2<f32> @offset(0) |
| } |
| |
| main_out = struct @align(16) { |
| x_GLF_color_1:vec4<f32> @offset(0), @location(0) |
| } |
| |
| %b1 = block { # root |
| %gl_FragCoord:ptr<private, vec4<f32>, read_write> = var |
| %x_7:ptr<uniform, buf0, read> = var @binding_point(0, 0) |
| %map:ptr<private, array<i32, 256>, read_write> = var |
| %x_GLF_color:ptr<private, vec4<f32>, read_write> = var |
| } |
| |
| %main_1 = func():void -> %b2 { |
| %b2 = block { |
| %pos:ptr<function, vec2<f32>, read_write> = var |
| %ipos:ptr<function, vec2<i32>, read_write> = var |
| %i:ptr<function, i32, read_write> = var |
| %p:ptr<function, vec2<i32>, read_write> = var |
| %canwalk:ptr<function, bool, read_write> = var |
| %v:ptr<function, i32, read_write> = var |
| %directions:ptr<function, i32, read_write> = var |
| %j:ptr<function, i32, read_write> = var |
| %d:ptr<function, i32, read_write> = var |
| %x_59:vec4<f32> = load %gl_FragCoord |
| %16:ptr<uniform, vec2<f32>, read> = access %x_7, 0u |
| %x_62:vec2<f32> = load %16 |
| %18:f32 = access %x_59, 0u |
| %19:f32 = access %x_59, 1u |
| %20:vec2<f32> = construct %18, %19 |
| %21:vec2<f32> = div %20, %x_62 |
| store %pos, %21 |
| %x_65:f32 = load_vector_element %pos, 0u |
| %x_69:f32 = load_vector_element %pos, 1u |
| %24:f32 = mul %x_65, 16.0f |
| %25:i32 = convert %24 |
| %26:f32 = mul %x_69, 16.0f |
| %27:i32 = convert %26 |
| %28:vec2<i32> = construct %25, %27 |
| store %ipos, %28 |
| store %i, 0i |
| loop [b: %b3, c: %b4] { # loop_1 |
| %b3 = block { # body |
| %x_77:i32 = load %i |
| %30:bool = lt %x_77, 256i |
| if %30 [t: %b5, f: %b6] { # if_1 |
| %b5 = block { # true |
| exit_if # if_1 |
| } |
| %b6 = block { # false |
| exit_loop # loop_1 |
| } |
| } |
| %x_80:i32 = load %i |
| %32:ptr<private, i32, read_write> = access %map, %x_80 |
| store %32, 0i |
| continue %b4 |
| } |
| %b4 = block { # continuing |
| %x_82:i32 = load %i |
| %34:i32 = add %x_82, 1i |
| store %i, %34 |
| next_iteration %b3 |
| } |
| } |
| store %p, vec2<i32>(0i) |
| store %canwalk, true |
| store %v, 0i |
| loop [b: %b7, c: %b8] { # loop_2 |
| %b7 = block { # body |
| %x_104:ptr<function, bool, read_write> = var |
| %x_124:ptr<function, bool, read_write> = var |
| %x_144:ptr<function, bool, read_write> = var |
| %x_164:ptr<function, bool, read_write> = var |
| %x_105_phi:ptr<function, bool, read_write> = var |
| %x_125_phi:ptr<function, bool, read_write> = var |
| %x_145_phi:ptr<function, bool, read_write> = var |
| %x_165_phi:ptr<function, bool, read_write> = var |
| %x_88:i32 = load %v |
| %44:i32 = add %x_88, 1i |
| store %v, %44 |
| store %directions, 0i |
| %x_91:i32 = load_vector_element %p, 0u |
| %x_92:bool = gt %x_91, 0i |
| store %x_105_phi, %x_92 |
| if %x_92 [t: %b9] { # if_2 |
| %b9 = block { # true |
| %x_96:i32 = load_vector_element %p, 0u |
| %x_99:i32 = load_vector_element %p, 1u |
| %49:i32 = sub %x_96, 2i |
| %50:i32 = mul %x_99, 16i |
| %51:i32 = add %49, %50 |
| %52:ptr<private, i32, read_write> = access %map, %51 |
| %x_103:i32 = load %52 |
| %54:bool = eq %x_103, 0i |
| store %x_104, %54 |
| %55:bool = load %x_104 |
| store %x_105_phi, %55 |
| exit_if # if_2 |
| } |
| } |
| %x_105:bool = load %x_105_phi |
| if %x_105 [t: %b10] { # if_3 |
| %b10 = block { # true |
| %x_108:i32 = load %directions |
| %58:i32 = add %x_108, 1i |
| store %directions, %58 |
| exit_if # if_3 |
| } |
| } |
| %x_111:i32 = load_vector_element %p, 1u |
| %x_112:bool = gt %x_111, 0i |
| store %x_125_phi, %x_112 |
| if %x_112 [t: %b11] { # if_4 |
| %b11 = block { # true |
| %x_116:i32 = load_vector_element %p, 0u |
| %x_118:i32 = load_vector_element %p, 1u |
| %63:i32 = sub %x_118, 2i |
| %64:i32 = mul %63, 16i |
| %65:i32 = add %x_116, %64 |
| %66:ptr<private, i32, read_write> = access %map, %65 |
| %x_123:i32 = load %66 |
| %68:bool = eq %x_123, 0i |
| store %x_124, %68 |
| %69:bool = load %x_124 |
| store %x_125_phi, %69 |
| exit_if # if_4 |
| } |
| } |
| %x_125:bool = load %x_125_phi |
| if %x_125 [t: %b12] { # if_5 |
| %b12 = block { # true |
| %x_128:i32 = load %directions |
| %72:i32 = add %x_128, 1i |
| store %directions, %72 |
| exit_if # if_5 |
| } |
| } |
| %x_131:i32 = load_vector_element %p, 0u |
| %x_132:bool = lt %x_131, 14i |
| store %x_145_phi, %x_132 |
| if %x_132 [t: %b13] { # if_6 |
| %b13 = block { # true |
| %x_136:i32 = load_vector_element %p, 0u |
| %x_139:i32 = load_vector_element %p, 1u |
| %77:i32 = add %x_136, 2i |
| %78:i32 = mul %x_139, 16i |
| %79:i32 = add %77, %78 |
| %80:ptr<private, i32, read_write> = access %map, %79 |
| %x_143:i32 = load %80 |
| %82:bool = eq %x_143, 0i |
| store %x_144, %82 |
| %83:bool = load %x_144 |
| store %x_145_phi, %83 |
| exit_if # if_6 |
| } |
| } |
| %x_145:bool = load %x_145_phi |
| if %x_145 [t: %b14] { # if_7 |
| %b14 = block { # true |
| %x_148:i32 = load %directions |
| %86:i32 = add %x_148, 1i |
| store %directions, %86 |
| exit_if # if_7 |
| } |
| } |
| %x_151:i32 = load_vector_element %p, 1u |
| %x_152:bool = lt %x_151, 14i |
| store %x_165_phi, %x_152 |
| if %x_152 [t: %b15] { # if_8 |
| %b15 = block { # true |
| %x_156:i32 = load_vector_element %p, 0u |
| %x_158:i32 = load_vector_element %p, 1u |
| %91:i32 = add %x_158, 2i |
| %92:i32 = mul %91, 16i |
| %93:i32 = add %x_156, %92 |
| %94:ptr<private, i32, read_write> = access %map, %93 |
| %x_163:i32 = load %94 |
| %96:bool = eq %x_163, 0i |
| store %x_164, %96 |
| %97:bool = load %x_164 |
| store %x_165_phi, %97 |
| exit_if # if_8 |
| } |
| } |
| %x_165:bool = load %x_165_phi |
| if %x_165 [t: %b16] { # if_9 |
| %b16 = block { # true |
| %x_168:i32 = load %directions |
| %100:i32 = add %x_168, 1i |
| store %directions, %100 |
| exit_if # if_9 |
| } |
| } |
| %x_229:ptr<function, bool, read_write> = var |
| %x_242:ptr<function, bool, read_write> = var |
| %x_281:ptr<function, bool, read_write> = var |
| %x_288:ptr<function, i32, read_write> = var |
| %x_289:ptr<function, i32, read_write> = var |
| %x_295:ptr<function, i32, read_write> = var |
| %x_296:ptr<function, i32, read_write> = var |
| %x_303:ptr<function, array<i32, 256>, read_write> = var |
| %x_304:ptr<function, array<i32, 256>, read_write> = var |
| %x_315:ptr<function, i32, read_write> = var |
| %x_316:ptr<function, i32, read_write> = var |
| %x_359:ptr<function, bool, read_write> = var |
| %x_372:ptr<function, bool, read_write> = var |
| %x_411:ptr<function, bool, read_write> = var |
| %x_424:ptr<function, bool, read_write> = var |
| %x_230_phi:ptr<function, bool, read_write> = var |
| %x_243_phi:ptr<function, bool, read_write> = var |
| %x_282_phi:ptr<function, bool, read_write> = var |
| %x_290_phi:ptr<function, i32, read_write> = var |
| %x_297_phi:ptr<function, i32, read_write> = var |
| %x_305_phi:ptr<function, array<i32, 256>, read_write> = var |
| %x_317_phi:ptr<function, i32, read_write> = var |
| %x_360_phi:ptr<function, bool, read_write> = var |
| %x_373_phi:ptr<function, bool, read_write> = var |
| %x_412_phi:ptr<function, bool, read_write> = var |
| %x_425_phi:ptr<function, bool, read_write> = var |
| %x_170:i32 = load %directions |
| %128:bool = eq %x_170, 0i |
| if %128 [t: %b17, f: %b18] { # if_10 |
| %b17 = block { # true |
| store %canwalk, false |
| store %i, 0i |
| loop [b: %b19, c: %b20] { # loop_3 |
| %b19 = block { # body |
| %x_179:i32 = load %i |
| %130:bool = lt %x_179, 8i |
| if %130 [t: %b21, f: %b22] { # if_11 |
| %b21 = block { # true |
| exit_if # if_11 |
| } |
| %b22 = block { # false |
| exit_loop # loop_3 |
| } |
| } |
| store %j, 0i |
| loop [b: %b23, c: %b24] { # loop_4 |
| %b23 = block { # body |
| %x_186:i32 = load %j |
| %132:bool = lt %x_186, 8i |
| if %132 [t: %b25, f: %b26] { # if_12 |
| %b25 = block { # true |
| exit_if # if_12 |
| } |
| %b26 = block { # false |
| exit_loop # loop_4 |
| } |
| } |
| %x_189:i32 = load %j |
| %x_191:i32 = load %i |
| %135:i32 = mul %x_189, 2i |
| %136:i32 = mul %x_191, 2i |
| %137:i32 = mul %136, 16i |
| %138:i32 = add %135, %137 |
| %139:ptr<private, i32, read_write> = access %map, %138 |
| %x_196:i32 = load %139 |
| %141:bool = eq %x_196, 0i |
| if %141 [t: %b27] { # if_13 |
| %b27 = block { # true |
| %x_200:i32 = load %j |
| %143:i32 = mul %x_200, 2i |
| store_vector_element %p, 0u, %143 |
| %x_203:i32 = load %i |
| %145:i32 = mul %x_203, 2i |
| store_vector_element %p, 1u, %145 |
| store %canwalk, true |
| exit_if # if_13 |
| } |
| } |
| continue %b24 |
| } |
| %b24 = block { # continuing |
| %x_206:i32 = load %j |
| %147:i32 = add %x_206, 1i |
| store %j, %147 |
| next_iteration %b23 |
| } |
| } |
| continue %b20 |
| } |
| %b20 = block { # continuing |
| %x_208:i32 = load %i |
| %149:i32 = add %x_208, 1i |
| store %i, %149 |
| next_iteration %b19 |
| } |
| } |
| %x_211:i32 = load_vector_element %p, 0u |
| %x_213:i32 = load_vector_element %p, 1u |
| %152:i32 = mul %x_213, 16i |
| %153:i32 = add %x_211, %152 |
| %154:ptr<private, i32, read_write> = access %map, %153 |
| store %154, 1i |
| exit_if # if_10 |
| } |
| %b18 = block { # false |
| %x_217:i32 = load %v |
| %x_218:i32 = load %directions |
| %157:i32 = mod %x_217, %x_218 |
| store %d, %157 |
| %x_220:i32 = load %directions |
| %x_221:i32 = load %v |
| %160:i32 = add %x_221, %x_220 |
| store %v, %160 |
| %x_223:i32 = load %d |
| %x_224:bool = gte %x_223, 0i |
| store %x_230_phi, %x_224 |
| if %x_224 [t: %b28] { # if_14 |
| %b28 = block { # true |
| %x_228:i32 = load_vector_element %p, 0u |
| %164:bool = gt %x_228, 0i |
| store %x_229, %164 |
| %165:bool = load %x_229 |
| store %x_230_phi, %165 |
| exit_if # if_14 |
| } |
| } |
| %x_230:bool = load %x_230_phi |
| store %x_243_phi, %x_230 |
| if %x_230 [t: %b29] { # if_15 |
| %b29 = block { # true |
| %x_234:i32 = load_vector_element %p, 0u |
| %x_237:i32 = load_vector_element %p, 1u |
| %169:i32 = sub %x_234, 2i |
| %170:i32 = mul %x_237, 16i |
| %171:i32 = add %169, %170 |
| %172:ptr<private, i32, read_write> = access %map, %171 |
| %x_241:i32 = load %172 |
| %174:bool = eq %x_241, 0i |
| store %x_242, %174 |
| %175:bool = load %x_242 |
| store %x_243_phi, %175 |
| exit_if # if_15 |
| } |
| } |
| %x_243:bool = load %x_243_phi |
| if %x_243 [t: %b30] { # if_16 |
| %b30 = block { # true |
| %x_246:i32 = load %d |
| %178:i32 = sub %x_246, 1i |
| store %d, %178 |
| %x_249:i32 = load_vector_element %p, 0u |
| %x_251:i32 = load_vector_element %p, 1u |
| %181:i32 = mul %x_251, 16i |
| %182:i32 = add %x_249, %181 |
| %183:ptr<private, i32, read_write> = access %map, %182 |
| store %183, 1i |
| %x_256:i32 = load_vector_element %p, 0u |
| %x_259:i32 = load_vector_element %p, 1u |
| %186:i32 = sub %x_256, 1i |
| %187:i32 = mul %x_259, 16i |
| %188:i32 = add %186, %187 |
| %189:ptr<private, i32, read_write> = access %map, %188 |
| store %189, 1i |
| %x_264:i32 = load_vector_element %p, 0u |
| %x_267:i32 = load_vector_element %p, 1u |
| %192:i32 = sub %x_264, 2i |
| %193:i32 = mul %x_267, 16i |
| %194:i32 = add %192, %193 |
| %195:ptr<private, i32, read_write> = access %map, %194 |
| store %195, 1i |
| %x_272:i32 = load_vector_element %p, 0u |
| %197:i32 = sub %x_272, 2i |
| store_vector_element %p, 0u, %197 |
| exit_if # if_16 |
| } |
| } |
| %x_275:i32 = load %d |
| %x_276:bool = gte %x_275, 0i |
| store %x_282_phi, %x_276 |
| if %x_276 [t: %b31] { # if_17 |
| %b31 = block { # true |
| %x_280:i32 = load_vector_element %p, 1u |
| %201:bool = gt %x_280, 0i |
| store %x_281, %201 |
| %202:bool = load %x_281 |
| store %x_282_phi, %202 |
| exit_if # if_17 |
| } |
| } |
| %x_282:bool = load %x_282_phi |
| if %x_282 [t: %b32, f: %b33] { # if_18 |
| %b32 = block { # true |
| %204:i32 = load_vector_element %p, 0u |
| store %x_288, %204 |
| %205:i32 = load %x_288 |
| store %x_290_phi, %205 |
| exit_if # if_18 |
| } |
| %b33 = block { # false |
| store %x_289, 0i |
| %206:i32 = load %x_289 |
| store %x_290_phi, %206 |
| exit_if # if_18 |
| } |
| } |
| %x_290:i32 = load %x_290_phi |
| if %x_282 [t: %b34, f: %b35] { # if_19 |
| %b34 = block { # true |
| %208:i32 = load_vector_element %p, 1u |
| store %x_295, %208 |
| %209:i32 = load %x_295 |
| store %x_297_phi, %209 |
| exit_if # if_19 |
| } |
| %b35 = block { # false |
| store %x_296, 0i |
| %210:i32 = load %x_296 |
| store %x_297_phi, %210 |
| exit_if # if_19 |
| } |
| } |
| %x_297:i32 = load %x_297_phi |
| %212:i32 = sub %x_297, 2i |
| %x_299:i32 = mul %212, 16i |
| if %x_282 [t: %b36, f: %b37] { # if_20 |
| %b36 = block { # true |
| %214:array<i32, 256> = load %map |
| store %x_303, %214 |
| %215:array<i32, 256> = load %x_303 |
| store %x_305_phi, %215 |
| exit_if # if_20 |
| } |
| %b37 = block { # false |
| store %x_304, array<i32, 256>(0i) |
| %216:array<i32, 256> = load %x_304 |
| store %x_305_phi, %216 |
| exit_if # if_20 |
| } |
| } |
| %x_305:array<i32, 256> = load %x_305_phi |
| if %x_282 [t: %b38] { # if_21 |
| %b38 = block { # true |
| store %map, array<i32, 256>(0i) |
| exit_if # if_21 |
| } |
| } |
| if %x_282 [t: %b39] { # if_22 |
| %b39 = block { # true |
| store %map, %x_305 |
| exit_if # if_22 |
| } |
| } |
| if %x_282 [t: %b40, f: %b41] { # if_23 |
| %b40 = block { # true |
| %218:i32 = add %x_290, %x_299 |
| %219:ptr<private, i32, read_write> = access %map, %218 |
| %220:i32 = load %219 |
| store %x_315, %220 |
| %221:i32 = load %x_315 |
| store %x_317_phi, %221 |
| exit_if # if_23 |
| } |
| %b41 = block { # false |
| store %x_316, 0i |
| %222:i32 = load %x_316 |
| store %x_317_phi, %222 |
| exit_if # if_23 |
| } |
| } |
| %x_317:i32 = load %x_317_phi |
| %x_318:bool = eq %x_317, 0i |
| %225:bool = select %x_282, %x_318, %x_282 |
| if %225 [t: %b42] { # if_24 |
| %b42 = block { # true |
| %x_323:i32 = load %d |
| %227:i32 = sub %x_323, 1i |
| store %d, %227 |
| %x_326:i32 = load_vector_element %p, 0u |
| %x_328:i32 = load_vector_element %p, 1u |
| %230:i32 = mul %x_328, 16i |
| %231:i32 = add %x_326, %230 |
| %232:ptr<private, i32, read_write> = access %map, %231 |
| store %232, 1i |
| %x_333:i32 = load_vector_element %p, 0u |
| %x_335:i32 = load_vector_element %p, 1u |
| %235:i32 = sub %x_335, 1i |
| %236:i32 = mul %235, 16i |
| %237:i32 = add %x_333, %236 |
| %238:ptr<private, i32, read_write> = access %map, %237 |
| store %238, 1i |
| %x_341:i32 = load_vector_element %p, 0u |
| %x_343:i32 = load_vector_element %p, 1u |
| %x_345:array<i32, 256> = load %map |
| store %map, array<i32, 256>(0i) |
| store %map, %x_345 |
| %242:i32 = sub %x_343, 2i |
| %243:i32 = mul %242, 16i |
| %244:i32 = add %x_341, %243 |
| %245:ptr<private, i32, read_write> = access %map, %244 |
| store %245, 1i |
| %x_350:i32 = load_vector_element %p, 1u |
| %247:i32 = sub %x_350, 2i |
| store_vector_element %p, 1u, %247 |
| exit_if # if_24 |
| } |
| } |
| %x_353:i32 = load %d |
| %x_354:bool = gte %x_353, 0i |
| store %x_360_phi, %x_354 |
| if %x_354 [t: %b43] { # if_25 |
| %b43 = block { # true |
| %x_358:i32 = load_vector_element %p, 0u |
| %251:bool = lt %x_358, 14i |
| store %x_359, %251 |
| %252:bool = load %x_359 |
| store %x_360_phi, %252 |
| exit_if # if_25 |
| } |
| } |
| %x_360:bool = load %x_360_phi |
| store %x_373_phi, %x_360 |
| if %x_360 [t: %b44] { # if_26 |
| %b44 = block { # true |
| %x_364:i32 = load_vector_element %p, 0u |
| %x_367:i32 = load_vector_element %p, 1u |
| %256:i32 = add %x_364, 2i |
| %257:i32 = mul %x_367, 16i |
| %258:i32 = add %256, %257 |
| %259:ptr<private, i32, read_write> = access %map, %258 |
| %x_371:i32 = load %259 |
| %261:bool = eq %x_371, 0i |
| store %x_372, %261 |
| %262:bool = load %x_372 |
| store %x_373_phi, %262 |
| exit_if # if_26 |
| } |
| } |
| %x_373:bool = load %x_373_phi |
| if %x_373 [t: %b45] { # if_27 |
| %b45 = block { # true |
| %x_376:i32 = load %d |
| %265:i32 = sub %x_376, 1i |
| store %d, %265 |
| %x_379:i32 = load_vector_element %p, 0u |
| %x_381:i32 = load_vector_element %p, 1u |
| %268:i32 = mul %x_381, 16i |
| %269:i32 = add %x_379, %268 |
| %270:ptr<private, i32, read_write> = access %map, %269 |
| store %270, 1i |
| %x_386:i32 = load_vector_element %p, 0u |
| %x_389:i32 = load_vector_element %p, 1u |
| %273:i32 = add %x_386, 1i |
| %274:i32 = mul %x_389, 16i |
| %275:i32 = add %273, %274 |
| %276:ptr<private, i32, read_write> = access %map, %275 |
| store %276, 1i |
| %x_394:i32 = load_vector_element %p, 0u |
| %x_397:i32 = load_vector_element %p, 1u |
| %279:i32 = add %x_394, 2i |
| %280:i32 = mul %x_397, 16i |
| %281:i32 = add %279, %280 |
| %282:ptr<private, i32, read_write> = access %map, %281 |
| store %282, 1i |
| %x_402:i32 = load_vector_element %p, 0u |
| %284:i32 = add %x_402, 2i |
| store_vector_element %p, 0u, %284 |
| exit_if # if_27 |
| } |
| } |
| %x_405:i32 = load %d |
| %x_406:bool = gte %x_405, 0i |
| store %x_412_phi, %x_406 |
| if %x_406 [t: %b46] { # if_28 |
| %b46 = block { # true |
| %x_410:i32 = load_vector_element %p, 1u |
| %288:bool = lt %x_410, 14i |
| store %x_411, %288 |
| %289:bool = load %x_411 |
| store %x_412_phi, %289 |
| exit_if # if_28 |
| } |
| } |
| %x_412:bool = load %x_412_phi |
| store %x_425_phi, %x_412 |
| if %x_412 [t: %b47] { # if_29 |
| %b47 = block { # true |
| %x_416:i32 = load_vector_element %p, 0u |
| %x_418:i32 = load_vector_element %p, 1u |
| %293:i32 = add %x_418, 2i |
| %294:i32 = mul %293, 16i |
| %295:i32 = add %x_416, %294 |
| %296:ptr<private, i32, read_write> = access %map, %295 |
| %x_423:i32 = load %296 |
| %298:bool = eq %x_423, 0i |
| store %x_424, %298 |
| %299:bool = load %x_424 |
| store %x_425_phi, %299 |
| exit_if # if_29 |
| } |
| } |
| %x_425:bool = load %x_425_phi |
| if %x_425 [t: %b48] { # if_30 |
| %b48 = block { # true |
| %x_428:i32 = load %d |
| %302:i32 = sub %x_428, 1i |
| store %d, %302 |
| %x_431:i32 = load_vector_element %p, 0u |
| %x_433:i32 = load_vector_element %p, 1u |
| %305:i32 = mul %x_433, 16i |
| %306:i32 = add %x_431, %305 |
| %307:ptr<private, i32, read_write> = access %map, %306 |
| store %307, 1i |
| %x_438:i32 = load_vector_element %p, 0u |
| %x_440:i32 = load_vector_element %p, 1u |
| %310:i32 = add %x_440, 1i |
| %311:i32 = mul %310, 16i |
| %312:i32 = add %x_438, %311 |
| %313:ptr<private, i32, read_write> = access %map, %312 |
| store %313, 1i |
| %x_446:i32 = load_vector_element %p, 0u |
| %x_448:i32 = load_vector_element %p, 1u |
| %316:i32 = add %x_448, 2i |
| %317:i32 = mul %316, 16i |
| %318:i32 = add %x_446, %317 |
| %319:ptr<private, i32, read_write> = access %map, %318 |
| store %319, 1i |
| %x_454:i32 = load_vector_element %p, 1u |
| %321:i32 = add %x_454, 2i |
| store_vector_element %p, 1u, %321 |
| exit_if # if_30 |
| } |
| } |
| exit_if # if_10 |
| } |
| } |
| %x_458:i32 = load_vector_element %ipos, 1u |
| %x_461:i32 = load_vector_element %ipos, 0u |
| %324:i32 = mul %x_458, 16i |
| %325:i32 = add %324, %x_461 |
| %326:ptr<private, i32, read_write> = access %map, %325 |
| %x_464:i32 = load %326 |
| %328:bool = eq %x_464, 1i |
| if %328 [t: %b49] { # if_31 |
| %b49 = block { # true |
| store %x_GLF_color, vec4<f32>(1.0f) |
| ret |
| } |
| } |
| continue %b8 |
| } |
| %b8 = block { # continuing |
| %x_468:bool = load %canwalk |
| %330:bool = eq %x_468, false |
| break_if %330 %b7 |
| } |
| } |
| store %x_GLF_color, vec4<f32>(0.0f, 0.0f, 0.0f, 1.0f) |
| ret |
| } |
| } |
| %tint_symbol = @fragment func(%gl_FragCoord_param:vec4<f32> [@position]):main_out -> %b50 { |
| %b50 = block { |
| store %gl_FragCoord, %gl_FragCoord_param |
| %333:void = call %main_1 |
| %334:vec4<f32> = load %x_GLF_color |
| %335:main_out = construct %334 |
| ret %335 |
| } |
| } |
| |
| 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. * |
| ******************************************************************** |