dawn-cmake/test/bug/chromium
Stephen White d4d7153bad GLSL: fix shadow samplers, and textures generally.
1) Append "Shadow" to samplers representing depth textures.
2) Sampling a depth texture returns f32, not vec4<f32>
3) Sampling a depth texture requires a Dref parameter, so we must
   generate one if none is provided.
4) GLSL requires Dref to be appended to the texture coordinates vector,
   *unless* it's a samplerCubeArrayShadow, since this would require vec5.
   In that case, it's passed as a separate parameter.
5) GLSL's textureGather() with a depth sampler always requires a refZ
   parameter, so provide zero to emulate WGSL's compare-less textureGather().
6) texelFetch() does not support depth textures, so this will have to be
   validated out.
7) textureOffset() does not support sampler2DArrayShadow in GLES, so this will
   have to be validated out.

Bug: tint:1298
Change-Id: Idaebe89cac6c1ec97c50a361b1d3aa3b84fb6c12
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78760
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-02-02 15:25:42 +00:00
..
1221120.wgsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
1221120.wgsl.expected.hlsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.msl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.spvasm ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.wgsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1236161.wgsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
1236161.wgsl.expected.hlsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.msl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.spvasm reader/wgsl: Allow identifiers to start with an underscore 2021-11-19 21:52:13 +00:00
1236161.wgsl.expected.wgsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1251009.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
1251009.wgsl.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
1251009.wgsl.expected.hlsl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.msl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.spvasm transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
1273230.wgsl Deprecate the @stride attribute 2022-01-20 22:11:07 +00:00
1273230.wgsl.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
1273230.wgsl.expected.hlsl Fix FXC compile errors on modulo by zero 2021-12-22 15:02:09 +00:00
1273230.wgsl.expected.msl writer/msl: Replace use of 'auto' with actual return type 2021-12-03 21:50:23 +00:00
1273230.wgsl.expected.spvasm transform: Don't consider type-ctor/casts as having side-effects 2021-11-25 16:10:28 +00:00
1273230.wgsl.expected.wgsl Deprecate the @stride attribute 2022-01-20 22:11:07 +00:00
1273451.wgsl resolver: Fix bug in dep graph SortGlobals() 2021-11-25 18:07:57 +00:00
1273451.wgsl.expected.glsl GLSL: move entry point handling to CanonicalizeEntryPointIO transform. 2022-01-28 22:36:58 +00:00
1273451.wgsl.expected.hlsl e2e tests: generate missing expected files 2021-12-18 21:28:23 +00:00
1273451.wgsl.expected.msl writer/msl: Replace use of 'auto' with actual return type 2021-12-03 21:50:23 +00:00
1273451.wgsl.expected.spvasm e2e tests: generate missing expected files 2021-12-18 21:28:23 +00:00
1273451.wgsl.expected.wgsl wgsl: Do not require a semicolon after a struct 2022-01-19 18:11:17 +00:00
1290107.wgsl transform: Fix CalculateArrayLength for arrays 2022-01-28 16:49:46 +00:00
1290107.wgsl.expected.glsl GLSL: fix shadow samplers, and textures generally. 2022-02-02 15:25:42 +00:00
1290107.wgsl.expected.hlsl transform: Fix CalculateArrayLength for arrays 2022-01-28 16:49:46 +00:00
1290107.wgsl.expected.msl transform: Fix CalculateArrayLength for arrays 2022-01-28 16:49:46 +00:00
1290107.wgsl.expected.spvasm transform: Fix CalculateArrayLength for arrays 2022-01-28 16:49:46 +00:00
1290107.wgsl.expected.wgsl transform: Fix CalculateArrayLength for arrays 2022-01-28 16:49:46 +00:00