dawn-cmake/test
Ryan Harrison dee93c6b9a Handle complex cases in Inspector::GenerateSamplerTargets
This code was implicitly assuming that all resources it was looking
for would be directly referenced at the intrinsic callsite, and not
passed via function parameters.

This was causing a crash in more complex cases.

The inspector code has been updated to handle cases where the
resources are not being directly referenced.

Unneeded calls to GenerateSamplerTargets() are removed.

Utility function GetOriginatingResources() is added to handle walking up
call sites to resolve resources.

Text shader based test runner is added to the Inspector tests to make
expressing complex tests easier.

BUG=tint:967

Change-Id: I2ecb6d57c518003da59f38b261bae4d62ce7e6ac
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59340
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-07-27 15:42:51 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
buffer transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
bug writer/wgsl: Emit access mode on pointer types 2021-07-26 22:11:58 +00:00
expressions writer/hlsl: Support bitcast of vectors 2021-07-26 15:08:28 +00:00
intrinsics Implement texture_depth_multisampled_2d 2021-07-26 22:19:48 +00:00
layout/storage/mat2x2 reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
loops test: Add loop test cases 2021-06-21 19:04:56 +00:00
ptr_ref writer/wgsl: Emit access mode on pointer types 2021-07-26 22:11:58 +00:00
samples transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
shader_io transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
statements/for writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
struct writer/hlsl: Don't wrap arrays in structures 2021-07-05 15:20:57 +00:00
types Add support for converting bool to other types 2021-07-19 17:35:39 +00:00
var writer/hlsl: Don't wrap arrays in structures 2021-07-05 15:20:57 +00:00
vk-gl-cts spir-writer: handle break continuing block 2021-07-27 15:12:27 +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
test.wgsl.expected.hlsl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.msl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.spvasm writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.wgsl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00