[glsl][ir] Enable bgra8unorm polyfill

This CL adds the `bgra8unorm` polyfill to the GLSL IR backend. The TODOs
for the binary polyfills are removed as the binary polyfill is already
being used.

Bug: 42251044
Change-Id: I71d622b7a1ea6a7f2c2529453c2bff15e4d740d3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/208017
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
index 3910173..241c0b4 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/5b4b10.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+uvec3 textureDimensions_5b4b10() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_5b4b10();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+uvec3 textureDimensions_5b4b10() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_5b4b10();
+}
diff --git a/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
index 3910173..01d19fa 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/8057cb.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_8057cb();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_8057cb();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_8057cb();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
index 3910173..3261788 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/9b10a0.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_9b10a0();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_9b10a0();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_9b10a0();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
index 3910173..4b261f0 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d1b882.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uvec2 textureDimensions_d1b882() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_d1b882();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uvec2 textureDimensions_d1b882() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_d1b882();
+}
diff --git a/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
index 3910173..184102c 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/d44ac3.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_d44ac3();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_d44ac3();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_d44ac3();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
index 3910173..a30acfe 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/fbb15a.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+uvec2 textureDimensions_fbb15a() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_fbb15a();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+uvec2 textureDimensions_fbb15a() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_fbb15a();
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
index 3910173..1180dfd 100644
--- a/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/26c4f8.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_26c4f8() {
+  vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_26c4f8();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_26c4f8() {
+  vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_26c4f8();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_26c4f8() {
+  vec4 res = imageLoad(arg_0, ivec2(ivec2(1))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_26c4f8();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
index 3910173..6fe8b74 100644
--- a/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/4fa6ae.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_4fa6ae() {
+  vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_4fa6ae();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_4fa6ae() {
+  vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_4fa6ae();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_4fa6ae() {
+  vec4 res = imageLoad(arg_0, ivec3(uvec3(1u))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_4fa6ae();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
index 3910173..b11e169 100644
--- a/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/54e0ce.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_54e0ce() {
+  vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_54e0ce();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_54e0ce() {
+  vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_54e0ce();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_54e0ce() {
+  vec4 res = imageLoad(arg_0, ivec2(uvec2(1u))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_54e0ce();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
index 3910173..6a2846f 100644
--- a/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/89620b.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_89620b() {
+  ivec2 v_1 = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_89620b();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_89620b() {
+  ivec2 v_1 = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_89620b();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_89620b() {
+  ivec2 v = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v, int(1))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_89620b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_1 = vertex_main_inner();
+  gl_Position = v_1.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_1.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
index 3910173..876f686 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8a291b.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_8a291b() {
+  ivec2 v_1 = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1u))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_8a291b();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_8a291b() {
+  ivec2 v_1 = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1u))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_8a291b();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_8a291b() {
+  ivec2 v = ivec2(ivec2(1));
+  vec4 res = imageLoad(arg_0, ivec3(v, int(1u))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_8a291b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_1 = vertex_main_inner();
+  gl_Position = v_1.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_1.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
index 3910173..32603d0 100644
--- a/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/ac64f7.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_ac64f7() {
+  ivec2 v_1 = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1u))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_ac64f7();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_ac64f7() {
+  ivec2 v_1 = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1u))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_ac64f7();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_ac64f7() {
+  ivec2 v = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v, int(1u))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_ac64f7();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_1 = vertex_main_inner();
+  gl_Position = v_1.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_1.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
index 3910173..b4aa79a 100644
--- a/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/e57e92.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_e57e92() {
+  ivec2 v_1 = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_e57e92();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_e57e92() {
+  ivec2 v_1 = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_e57e92();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_e57e92() {
+  ivec2 v = ivec2(uvec2(1u));
+  vec4 res = imageLoad(arg_0, ivec3(v, int(1))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_e57e92();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_1 = vertex_main_inner();
+  gl_Position = v_1.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_1.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
index 3910173..591859b 100644
--- a/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/f8a2e8.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_f8a2e8() {
+  vec4 res = imageLoad(arg_0, ivec3(ivec3(1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_f8a2e8();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_f8a2e8() {
+  vec4 res = imageLoad(arg_0, ivec3(ivec3(1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_f8a2e8();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_f8a2e8() {
+  vec4 res = imageLoad(arg_0, ivec3(ivec3(1))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_f8a2e8();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
index 3910173..8959acc 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/1f858a.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uint textureNumLayers_1f858a() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureNumLayers_1f858a();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uint textureNumLayers_1f858a() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureNumLayers_1f858a();
+}
diff --git a/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
index 3910173..0247b41 100644
--- a/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureNumLayers/485774.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureNumLayers_485774();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureNumLayers_485774();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uint prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureNumLayers_485774();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
index 3910173..7573b1f 100644
--- a/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/2e4245.wgsl.expected.ir.glsl
@@ -1,11 +1,21 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+void textureStore_2e4245() {
+  imageStore(arg_0, ivec2(1), vec4(1.0f).zyxw);
+}
+void main() {
+  textureStore_2e4245();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+void textureStore_2e4245() {
+  imageStore(arg_0, ivec2(1), vec4(1.0f).zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_2e4245();
+}
diff --git a/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
index 3910173..ef38feb 100644
--- a/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/319029.wgsl.expected.ir.glsl
@@ -1,11 +1,21 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_319029() {
+  imageStore(arg_0, ivec3(ivec2(1), int(1)), vec4(1.0f).zyxw);
+}
+void main() {
+  textureStore_319029();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_319029() {
+  imageStore(arg_0, ivec3(ivec2(1), int(1)), vec4(1.0f).zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_319029();
+}
diff --git a/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
index 3910173..f3960f6 100644
--- a/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/76affd.wgsl.expected.ir.glsl
@@ -1,11 +1,21 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_76affd() {
+  imageStore(arg_0, ivec3(ivec2(1), int(1u)), vec4(1.0f).zyxw);
+}
+void main() {
+  textureStore_76affd();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_76affd() {
+  imageStore(arg_0, ivec3(ivec2(1), int(1u)), vec4(1.0f).zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_76affd();
+}
diff --git a/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
index 3910173..df5a69f 100644
--- a/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureStore/bedbfc.wgsl.expected.ir.glsl
@@ -1,11 +1,21 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+void textureStore_bedbfc() {
+  imageStore(arg_0, ivec3(1), vec4(1.0f).zyxw);
+}
+void main() {
+  textureStore_bedbfc();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+void textureStore_bedbfc() {
+  imageStore(arg_0, ivec3(1), vec4(1.0f).zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_bedbfc();
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
index 3910173..241c0b4 100644
--- a/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/5b4b10.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+uvec3 textureDimensions_5b4b10() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_5b4b10();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+uvec3 textureDimensions_5b4b10() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_5b4b10();
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
index 3910173..01d19fa 100644
--- a/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/8057cb.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_8057cb();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec3 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_8057cb();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec3 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out uvec3 vertex_main_loc0_Output;
+uvec3 textureDimensions_8057cb() {
+  uvec3 res = uvec3(imageSize(arg_0));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec3(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_8057cb();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
index 3910173..3261788 100644
--- a/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/9b10a0.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_9b10a0();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_9b10a0();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 textureDimensions_9b10a0() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_9b10a0();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
index 3910173..4b261f0 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d1b882.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uvec2 textureDimensions_d1b882() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_d1b882();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uvec2 textureDimensions_d1b882() {
+  uvec2 res = uvec2(imageSize(arg_0).xy);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_d1b882();
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
index 3910173..184102c 100644
--- a/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/d44ac3.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_d44ac3();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_d44ac3();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uvec2 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out uvec2 vertex_main_loc0_Output;
+uvec2 textureDimensions_d44ac3() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), uvec2(0u));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureDimensions_d44ac3();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
index 3910173..a30acfe 100644
--- a/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureDimensions/fbb15a.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+uvec2 textureDimensions_fbb15a() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+void main() {
+  v.tint_symbol = textureDimensions_fbb15a();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uvec2 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+uvec2 textureDimensions_fbb15a() {
+  uvec2 res = uvec2(imageSize(arg_0));
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureDimensions_fbb15a();
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
index 3910173..7bc8bb5 100644
--- a/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/26c4f8.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_26c4f8() {
+  ivec2 arg_1 = ivec2(1);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_26c4f8();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_26c4f8() {
+  ivec2 arg_1 = ivec2(1);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_26c4f8();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_26c4f8() {
+  ivec2 arg_1 = ivec2(1);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_26c4f8();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
index 3910173..c27d95b 100644
--- a/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/4fa6ae.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_4fa6ae() {
+  uvec3 arg_1 = uvec3(1u);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_4fa6ae();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_4fa6ae() {
+  uvec3 arg_1 = uvec3(1u);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_4fa6ae();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_4fa6ae() {
+  uvec3 arg_1 = uvec3(1u);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_4fa6ae();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
index 3910173..1735009 100644
--- a/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/54e0ce.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_54e0ce() {
+  uvec2 arg_1 = uvec2(1u);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_54e0ce();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+vec4 textureLoad_54e0ce() {
+  uvec2 arg_1 = uvec2(1u);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_54e0ce();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_54e0ce() {
+  uvec2 arg_1 = uvec2(1u);
+  vec4 res = imageLoad(arg_0, ivec2(arg_1)).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_54e0ce();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
index 3910173..dc1adf5 100644
--- a/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/89620b.wgsl.expected.ir.glsl
@@ -1,11 +1,71 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_89620b() {
+  ivec2 arg_1 = ivec2(1);
+  int arg_2 = 1;
+  int v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_89620b();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_89620b() {
+  ivec2 arg_1 = ivec2(1);
+  int arg_2 = 1;
+  int v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_89620b();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_89620b() {
+  ivec2 arg_1 = ivec2(1);
+  int arg_2 = 1;
+  int v = arg_2;
+  ivec2 v_1 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(v))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_89620b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_2 = vertex_main_inner();
+  gl_Position = v_2.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_2.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
index 3910173..a291a72 100644
--- a/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/8a291b.wgsl.expected.ir.glsl
@@ -1,11 +1,71 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_8a291b() {
+  ivec2 arg_1 = ivec2(1);
+  uint arg_2 = 1u;
+  uint v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_8a291b();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_8a291b() {
+  ivec2 arg_1 = ivec2(1);
+  uint arg_2 = 1u;
+  uint v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_8a291b();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_8a291b() {
+  ivec2 arg_1 = ivec2(1);
+  uint arg_2 = 1u;
+  uint v = arg_2;
+  ivec2 v_1 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(v))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_8a291b();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_2 = vertex_main_inner();
+  gl_Position = v_2.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_2.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
index 3910173..3ffd877 100644
--- a/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/ac64f7.wgsl.expected.ir.glsl
@@ -1,11 +1,71 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_ac64f7() {
+  uvec2 arg_1 = uvec2(1u);
+  uint arg_2 = 1u;
+  uint v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_ac64f7();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_ac64f7() {
+  uvec2 arg_1 = uvec2(1u);
+  uint arg_2 = 1u;
+  uint v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_ac64f7();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_ac64f7() {
+  uvec2 arg_1 = uvec2(1u);
+  uint arg_2 = 1u;
+  uint v = arg_2;
+  ivec2 v_1 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(v))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_ac64f7();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_2 = vertex_main_inner();
+  gl_Position = v_2.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_2.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
index 3910173..2914a6a 100644
--- a/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/e57e92.wgsl.expected.ir.glsl
@@ -1,11 +1,71 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_e57e92() {
+  uvec2 arg_1 = uvec2(1u);
+  int arg_2 = 1;
+  int v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_e57e92();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+vec4 textureLoad_e57e92() {
+  uvec2 arg_1 = uvec2(1u);
+  int arg_2 = 1;
+  int v_1 = arg_2;
+  ivec2 v_2 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_2, int(v_1))).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_e57e92();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_e57e92() {
+  uvec2 arg_1 = uvec2(1u);
+  int arg_2 = 1;
+  int v = arg_2;
+  ivec2 v_1 = ivec2(arg_1);
+  vec4 res = imageLoad(arg_0, ivec3(v_1, int(v))).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_e57e92();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v_2 = vertex_main_inner();
+  gl_Position = v_2.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v_2.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
index 3910173..b387436 100644
--- a/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureLoad/f8a2e8.wgsl.expected.ir.glsl
@@ -1,11 +1,62 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_f8a2e8() {
+  ivec3 arg_1 = ivec3(1);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+void main() {
+  v.tint_symbol = textureLoad_f8a2e8();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  vec4 tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+vec4 textureLoad_f8a2e8() {
+  ivec3 arg_1 = ivec3(1);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureLoad_f8a2e8();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  vec4 prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image3D arg_0;
+layout(location = 0) flat out vec4 vertex_main_loc0_Output;
+vec4 textureLoad_f8a2e8() {
+  ivec3 arg_1 = ivec3(1);
+  vec4 res = imageLoad(arg_0, ivec3(arg_1)).zyxw;
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), vec4(0.0f));
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureLoad_f8a2e8();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
index 3910173..8959acc 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/1f858a.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uint textureNumLayers_1f858a() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureNumLayers_1f858a();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+uint textureNumLayers_1f858a() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureNumLayers_1f858a();
+}
diff --git a/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
index 3910173..0247b41 100644
--- a/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureNumLayers/485774.wgsl.expected.ir.glsl
@@ -1,11 +1,59 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+void main() {
+  v.tint_symbol = textureNumLayers_485774();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, std430)
+buffer tint_symbol_1_1_ssbo {
+  uint tint_symbol;
+} v;
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  v.tint_symbol = textureNumLayers_485774();
+}
+#version 310 es
+
+
+struct VertexOutput {
+  vec4 pos;
+  uint prevent_dce;
+};
+
+layout(binding = 0, rgba8) uniform highp readonly image2DArray arg_0;
+layout(location = 0) flat out uint vertex_main_loc0_Output;
+uint textureNumLayers_485774() {
+  uint res = uint(imageSize(arg_0).z);
+  return res;
+}
+VertexOutput vertex_main_inner() {
+  VertexOutput tint_symbol = VertexOutput(vec4(0.0f), 0u);
+  tint_symbol.pos = vec4(0.0f);
+  tint_symbol.prevent_dce = textureNumLayers_485774();
+  return tint_symbol;
+}
+void main() {
+  VertexOutput v = vertex_main_inner();
+  gl_Position = v.pos;
+  gl_Position[1u] = -(gl_Position.y);
+  gl_Position[2u] = ((2.0f * gl_Position.z) - gl_Position.w);
+  vertex_main_loc0_Output = v.prevent_dce;
+  gl_PointSize = 1.0f;
+}
diff --git a/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
index 3910173..43b3647 100644
--- a/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/2e4245.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+void textureStore_2e4245() {
+  ivec2 arg_1 = ivec2(1);
+  vec4 arg_2 = vec4(1.0f);
+  imageStore(arg_0, arg_1, arg_2.zyxw);
+}
+void main() {
+  textureStore_2e4245();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2D arg_0;
+void textureStore_2e4245() {
+  ivec2 arg_1 = ivec2(1);
+  vec4 arg_2 = vec4(1.0f);
+  imageStore(arg_0, arg_1, arg_2.zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_2e4245();
+}
diff --git a/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
index 3910173..d20abf2 100644
--- a/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/319029.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_319029() {
+  ivec2 arg_1 = ivec2(1);
+  int arg_2 = 1;
+  vec4 arg_3 = vec4(1.0f);
+  ivec2 v = arg_1;
+  vec4 v_1 = arg_3.zyxw;
+  imageStore(arg_0, ivec3(v, int(arg_2)), v_1);
+}
+void main() {
+  textureStore_319029();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_319029() {
+  ivec2 arg_1 = ivec2(1);
+  int arg_2 = 1;
+  vec4 arg_3 = vec4(1.0f);
+  ivec2 v = arg_1;
+  vec4 v_1 = arg_3.zyxw;
+  imageStore(arg_0, ivec3(v, int(arg_2)), v_1);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_319029();
+}
diff --git a/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
index 3910173..4e993bb6 100644
--- a/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/76affd.wgsl.expected.ir.glsl
@@ -1,11 +1,31 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_76affd() {
+  ivec2 arg_1 = ivec2(1);
+  uint arg_2 = 1u;
+  vec4 arg_3 = vec4(1.0f);
+  ivec2 v = arg_1;
+  vec4 v_1 = arg_3.zyxw;
+  imageStore(arg_0, ivec3(v, int(arg_2)), v_1);
+}
+void main() {
+  textureStore_76affd();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2DArray arg_0;
+void textureStore_76affd() {
+  ivec2 arg_1 = ivec2(1);
+  uint arg_2 = 1u;
+  vec4 arg_3 = vec4(1.0f);
+  ivec2 v = arg_1;
+  vec4 v_1 = arg_3.zyxw;
+  imageStore(arg_0, ivec3(v, int(arg_2)), v_1);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_76affd();
+}
diff --git a/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
index 3910173..95d4135 100644
--- a/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureStore/bedbfc.wgsl.expected.ir.glsl
@@ -1,11 +1,25 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+void textureStore_bedbfc() {
+  ivec3 arg_1 = ivec3(1);
+  vec4 arg_2 = vec4(1.0f);
+  imageStore(arg_0, arg_1, arg_2.zyxw);
+}
+void main() {
+  textureStore_bedbfc();
+}
+#version 310 es
 
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image3D arg_0;
+void textureStore_bedbfc() {
+  ivec3 arg_1 = ivec3(1);
+  vec4 arg_2 = vec4(1.0f);
+  imageStore(arg_0, arg_1, arg_2.zyxw);
+}
+layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
+void main() {
+  textureStore_bedbfc();
+}
diff --git a/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl b/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
index 3910173..32b7181 100644
--- a/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/textureStore/bgraunorm.wgsl.expected.ir.glsl
@@ -1,11 +1,9 @@
-SKIP: FAILED
+#version 310 es
+precision highp float;
+precision highp int;
 
-<dawn>/src/tint/lang/glsl/writer/printer/printer.cc:994 internal compiler error: bgra8unorm should have been polyfilled to rgba8unorm
-********************************************************************
-*  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.  *
-********************************************************************
-
-tint executable returned error: signal: trace/BPT trap
+layout(binding = 0, rgba8) uniform highp writeonly image2D tex;
+void main() {
+  vec4 value = vec4(1.0f, 2.0f, 3.0f, 4.0f);
+  imageStore(tex, ivec2(9, 8), value.zyxw);
+}