dawn-cmake/test/tint
Stephen White 17601930e4 GLSL: fix textureSampleLevel() on depth textures.
Multiple bugs here:

1) Like texture(), GLSL's textureLod() on depth textures returns a
   scalar, and does not need to be swizzled. So set glsl_ret_width to
   1 in that case.
2) Like texture(), GLSL's textureLod() always requires a Dref
   parameter, so append a zero if not present.
3) GLSL's "lod" parameter to textureLod() is always a float, unlike
   WGSL's textureSampleLevel() which is an i32 for depth textures,
   so cast it.

Along the way, I discovered that textureLod() is not supported on
samplerCubeShadow or sampler2DArrayShadow (even on Desktop GL). So some
tests will never pass. Logged as https://crbug.com/dawn/1313

Bug: tint:1456
Change-Id: If67d8d288704142278d7a4e52b46e8010776f381
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82300
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-03-02 14:01:00 +00:00
..
access tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
array tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
benchmark GLSL: special-case BinaryOp::kModulo for floating point. 2022-02-28 21:15:02 +00:00
buffer tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
bug GLSL: special-case BinaryOp::kModulo for floating point. 2022-02-28 21:15:02 +00:00
builtins GLSL: fix textureSampleLevel() on depth textures. 2022-03-02 14:01:00 +00:00
expressions GLSL: special-case BinaryOp::kModulo for floating point. 2022-02-28 21:15:02 +00:00
identifiers/underscore tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
layout/storage/mat2x2 tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
let tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
loops tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
out_of_order_decls tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
ptr_ref tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
samples tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
shader_io tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
shadowing tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
statements tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
struct tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
types tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
unicode test: Move unicode e2e test to tint dir 2022-02-21 16:51:06 +00:00
unittest/reader/spirv GLSL: fix textureSampleLevel() on depth textures. 2022-03-02 14:01:00 +00:00
var tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
vk-gl-cts GLSL: fix countOneBits(). 2022-03-01 14:25:42 +00:00
BUILD.gn Delete Single-Plane External Texture Transform 2022-02-25 20:14:52 +00:00
extract-spvasm.py tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
test-all.sh tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00