Move tint::transform::Robustness to a santizier transform
There's no good reason for this to be public.
Move it into the writers, and expose a 'disable_robustness' option to
turn it off. This can be expanded to hold more fine-grain control in the
future.
Change-Id: I6ea6e54a27b2ae0fbcba5fdf45539063045cc15a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122203
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
diff --git a/test/tint/builtins/gen/literal/textureDimensions/cdc6c9.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureDimensions/cdc6c9.wgsl.expected.glsl
index f358a09..8747181 100644
--- a/test/tint/builtins/gen/literal/textureDimensions/cdc6c9.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureDimensions/cdc6c9.wgsl.expected.glsl
@@ -14,16 +14,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -31,6 +37,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -72,16 +80,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -89,6 +103,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -124,16 +140,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -141,6 +163,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
diff --git a/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.glsl
index a5f0e0a..598afb2 100644
--- a/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/1bfdfb.wgsl.expected.glsl
@@ -14,16 +14,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -31,6 +37,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -63,7 +71,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_1bfdfb() {
@@ -100,16 +108,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -117,6 +131,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -149,7 +165,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_1bfdfb() {
@@ -180,16 +196,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -197,6 +219,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -229,7 +253,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_1bfdfb() {
diff --git a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.glsl
index a2b7930..5629e71 100644
--- a/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureLoad/8acf41.wgsl.expected.glsl
@@ -14,16 +14,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -31,6 +37,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -63,7 +71,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_8acf41() {
@@ -100,16 +108,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -117,6 +131,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -149,7 +165,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_8acf41() {
@@ -180,16 +196,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -197,6 +219,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 2, std140) uniform ext_tex_params_block_std140_ubo {
@@ -229,7 +253,7 @@
uniform highp sampler2D arg_0_1;
uniform highp sampler2D ext_tex_plane_1_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureLoad_8acf41() {
diff --git a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.glsl
index b12b3d8..4ff46db 100644
--- a/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleBaseClampToEdge/7c04e6.wgsl.expected.glsl
@@ -14,16 +14,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -31,6 +37,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 3, std140) uniform ext_tex_params_block_std140_ubo {
@@ -72,7 +80,7 @@
uniform highp sampler2D arg_0_arg_1;
uniform highp sampler2D ext_tex_plane_1_arg_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureSampleBaseClampToEdge_7c04e6() {
@@ -109,16 +117,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -126,6 +140,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 3, std140) uniform ext_tex_params_block_std140_ubo {
@@ -167,7 +183,7 @@
uniform highp sampler2D arg_0_arg_1;
uniform highp sampler2D ext_tex_plane_1_arg_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureSampleBaseClampToEdge_7c04e6() {
@@ -198,16 +214,22 @@
struct ExternalTextureParams {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
mat3 gamutConversionMatrix;
mat3x2 coordTransformationMatrix;
+ uint pad_2;
+ uint pad_3;
};
struct ExternalTextureParams_std140 {
uint numPlanes;
uint doYuvToRgbConversionOnly;
+ uint pad;
+ uint pad_1;
mat3x4 yuvToRgbConversionMatrix;
GammaTransferParams gammaDecodeParams;
GammaTransferParams gammaEncodeParams;
@@ -215,6 +237,8 @@
vec2 coordTransformationMatrix_0;
vec2 coordTransformationMatrix_1;
vec2 coordTransformationMatrix_2;
+ uint pad_2;
+ uint pad_3;
};
layout(binding = 3, std140) uniform ext_tex_params_block_std140_ubo {
@@ -256,7 +280,7 @@
uniform highp sampler2D arg_0_arg_1;
uniform highp sampler2D ext_tex_plane_1_arg_1;
ExternalTextureParams conv_ExternalTextureParams(ExternalTextureParams_std140 val) {
- return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2));
+ return ExternalTextureParams(val.numPlanes, val.doYuvToRgbConversionOnly, val.pad, val.pad_1, val.yuvToRgbConversionMatrix, val.gammaDecodeParams, val.gammaEncodeParams, val.gamutConversionMatrix, mat3x2(val.coordTransformationMatrix_0, val.coordTransformationMatrix_1, val.coordTransformationMatrix_2), val.pad_2, val.pad_3);
}
void textureSampleBaseClampToEdge_7c04e6() {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.dxc.hlsl
index 26bb61f..9324574 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.dxc.hlsl
@@ -1,14 +1,14 @@
-groupshared uint arg_0;
-
-uint tint_workgroupUniformLoad_arg_0() {
+uint tint_workgroupUniformLoad(inout uint p) {
GroupMemoryBarrierWithGroupSync();
- const uint result = arg_0;
+ const uint result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared uint arg_0;
+
void workgroupUniformLoad_37307c() {
- uint res = tint_workgroupUniformLoad_arg_0();
+ uint res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.fxc.hlsl
index 26bb61f..9324574 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.fxc.hlsl
@@ -1,14 +1,14 @@
-groupshared uint arg_0;
-
-uint tint_workgroupUniformLoad_arg_0() {
+uint tint_workgroupUniformLoad(inout uint p) {
GroupMemoryBarrierWithGroupSync();
- const uint result = arg_0;
+ const uint result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared uint arg_0;
+
void workgroupUniformLoad_37307c() {
- uint res = tint_workgroupUniformLoad_arg_0();
+ uint res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.glsl
index 5b51b2d..061ebab 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/37307c.wgsl.expected.glsl
@@ -1,15 +1,15 @@
#version 310 es
-shared uint arg_0;
-uint tint_workgroupUniformLoad_arg_0() {
+uint tint_workgroupUniformLoad(inout uint p) {
barrier();
- uint result = arg_0;
+ uint result = p;
barrier();
return result;
}
+shared uint arg_0;
void workgroupUniformLoad_37307c() {
- uint res = tint_workgroupUniformLoad_arg_0();
+ uint res = tint_workgroupUniformLoad(arg_0);
}
void compute_main(uint local_invocation_index) {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.dxc.hlsl
index fe6d27e..0bd3512 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.dxc.hlsl
@@ -1,14 +1,14 @@
-groupshared float arg_0;
-
-float tint_workgroupUniformLoad_arg_0() {
+float tint_workgroupUniformLoad(inout float p) {
GroupMemoryBarrierWithGroupSync();
- const float result = arg_0;
+ const float result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared float arg_0;
+
void workgroupUniformLoad_7a857c() {
- float res = tint_workgroupUniformLoad_arg_0();
+ float res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.fxc.hlsl
index fe6d27e..0bd3512 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.fxc.hlsl
@@ -1,14 +1,14 @@
-groupshared float arg_0;
-
-float tint_workgroupUniformLoad_arg_0() {
+float tint_workgroupUniformLoad(inout float p) {
GroupMemoryBarrierWithGroupSync();
- const float result = arg_0;
+ const float result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared float arg_0;
+
void workgroupUniformLoad_7a857c() {
- float res = tint_workgroupUniformLoad_arg_0();
+ float res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.glsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.glsl
index bfdeb87..dcde824 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/7a857c.wgsl.expected.glsl
@@ -1,15 +1,15 @@
#version 310 es
-shared float arg_0;
-float tint_workgroupUniformLoad_arg_0() {
+float tint_workgroupUniformLoad(inout float p) {
barrier();
- float result = arg_0;
+ float result = p;
barrier();
return result;
}
+shared float arg_0;
void workgroupUniformLoad_7a857c() {
- float res = tint_workgroupUniformLoad_arg_0();
+ float res = tint_workgroupUniformLoad(arg_0);
}
void compute_main(uint local_invocation_index) {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.dxc.hlsl
index 87cf14c..5bce24b 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.dxc.hlsl
@@ -1,14 +1,14 @@
-groupshared int arg_0;
-
-int tint_workgroupUniformLoad_arg_0() {
+int tint_workgroupUniformLoad(inout int p) {
GroupMemoryBarrierWithGroupSync();
- const int result = arg_0;
+ const int result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared int arg_0;
+
void workgroupUniformLoad_9d33de() {
- int res = tint_workgroupUniformLoad_arg_0();
+ int res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.fxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.fxc.hlsl
index 87cf14c..5bce24b 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.fxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.fxc.hlsl
@@ -1,14 +1,14 @@
-groupshared int arg_0;
-
-int tint_workgroupUniformLoad_arg_0() {
+int tint_workgroupUniformLoad(inout int p) {
GroupMemoryBarrierWithGroupSync();
- const int result = arg_0;
+ const int result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared int arg_0;
+
void workgroupUniformLoad_9d33de() {
- int res = tint_workgroupUniformLoad_arg_0();
+ int res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.glsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.glsl
index 31ae3f9..10874b5 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/9d33de.wgsl.expected.glsl
@@ -1,15 +1,15 @@
#version 310 es
-shared int arg_0;
-int tint_workgroupUniformLoad_arg_0() {
+int tint_workgroupUniformLoad(inout int p) {
barrier();
- int result = arg_0;
+ int result = p;
barrier();
return result;
}
+shared int arg_0;
void workgroupUniformLoad_9d33de() {
- int res = tint_workgroupUniformLoad_arg_0();
+ int res = tint_workgroupUniformLoad(arg_0);
}
void compute_main(uint local_invocation_index) {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.dxc.hlsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.dxc.hlsl
index d34a7c4..96fb735 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.dxc.hlsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.dxc.hlsl
@@ -1,14 +1,14 @@
-groupshared float16_t arg_0;
-
-float16_t tint_workgroupUniformLoad_arg_0() {
+float16_t tint_workgroupUniformLoad(inout float16_t p) {
GroupMemoryBarrierWithGroupSync();
- const float16_t result = arg_0;
+ const float16_t result = p;
GroupMemoryBarrierWithGroupSync();
return result;
}
+groupshared float16_t arg_0;
+
void workgroupUniformLoad_e07d08() {
- float16_t res = tint_workgroupUniformLoad_arg_0();
+ float16_t res = tint_workgroupUniformLoad(arg_0);
}
struct tint_symbol_1 {
diff --git a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.glsl b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.glsl
index 0b882bd..33a9a40 100644
--- a/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/workgroupUniformLoad/e07d08.wgsl.expected.glsl
@@ -1,16 +1,16 @@
#version 310 es
#extension GL_AMD_gpu_shader_half_float : require
-shared float16_t arg_0;
-float16_t tint_workgroupUniformLoad_arg_0() {
+float16_t tint_workgroupUniformLoad(inout float16_t p) {
barrier();
- float16_t result = arg_0;
+ float16_t result = p;
barrier();
return result;
}
+shared float16_t arg_0;
void workgroupUniformLoad_e07d08() {
- float16_t res = tint_workgroupUniformLoad_arg_0();
+ float16_t res = tint_workgroupUniformLoad(arg_0);
}
void compute_main(uint local_invocation_index) {