dawn-cmake/test
Ben Clayton 9021eb5594 resolver: Allow parameters to shadow globals
In https://dawn-review.googlesource.com/c/tint/+/62444 the Resolver validated that there are no parameters of the same function with the same name, but this also introduced validation that errors if parameters shadow a module-scope variable.

The WGSL spec allows for shadowing, but Tint so far has not implemented this support.

There are transforms that generate functions that presume parameter <-> module-scope variable shadowing is okay. DecomposeMemoryAccess is one of these.

This fixes those transforms which could generate programs that fail validation.

Bug: chromium:1242330
Fixed: tint:1136
Change-Id: Id6ec59bbdb398b3b2a23312115a7c1dadf433e98
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62900
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-08-26 15:40:06 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
buffer msl: Overload matrix-vector arithmetic operators 2021-08-23 21:45:23 +00:00
bug resolver: Allow parameters to shadow globals 2021-08-26 15:40:06 +00:00
expressions msl: Overload matrix-vector arithmetic operators 2021-08-23 21:45:23 +00:00
intrinsics Implement atomicSub intrinsic 2021-08-26 15:26:25 +00:00
layout/storage/mat2x2 msl: Only emit packed vectors when the width is 3 2021-08-23 21:45:23 +00:00
loops Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
ptr_ref spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
samples msl: Only emit packed vectors when the width is 3 2021-08-23 21:45:23 +00:00
shader_io msl: Only emit packed vectors when the width is 3 2021-08-23 21:45:23 +00:00
statements/for Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
struct Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
switch writer/hlsl: Inline fallthrough case statements 2021-08-02 12:58:19 +00:00
types msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
unittest/reader/spirv test: Remove many expected files 2021-08-24 22:49:42 +00:00
var spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
vk-gl-cts test: Remove many expected files 2021-08-24 22:49:42 +00:00
BUILD.gn Handle complex cases in Inspector::GenerateSamplerTargets 2021-07-27 15:42:51 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00