From fdef653ab5b38ac78d355d2f0148c6d77e784a8c Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:56:59 -0400 Subject: Improve Direct SPIRV Backend Test Coverage (#4396) 'raytracing' and 'texture-footprint' tests fixed texture-footprint bug changed when we emit raytracing/rayquery extensions with glsl backend (to reduce incorrect extension emitting) --- .../query/footprint/nv-shader-texture-footprint-simple.slang | 1 + .../texture/query/footprint/nv-shader-texture-footprint.slang | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/gpu-feature') diff --git a/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint-simple.slang b/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint-simple.slang index c5852e989..9967a8d86 100644 --- a/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint-simple.slang +++ b/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint-simple.slang @@ -1,4 +1,5 @@ //TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -entry fragmentMain -stage fragment -emit-spirv-via-glsl +//TEST:SIMPLE(filecheck=SPIRV):-target spirv -entry fragmentMain -stage fragment //DISABLED_TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -entry fragmentMain -stage fragment -DENABLE_CLAMP -emit-spirv-directly //DISABLED_TEST:SIMPLE(filecheck=DXIL):-target dxil-assembly -entry fragmentMain -stage fragment //TEST:SIMPLE(filecheck=HLSL):-target hlsl -entry fragmentMain -stage fragment diff --git a/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint.slang b/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint.slang index d775dd187..55181a383 100644 --- a/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint.slang +++ b/tests/gpu-feature/texture/query/footprint/nv-shader-texture-footprint.slang @@ -1,4 +1,5 @@ //TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -emit-spirv-via-glsl -entry fragmentMain -stage fragment -DENABLE_CLAMP +//TEST:SIMPLE(filecheck=SPIRV):-target spirv -entry fragmentMain -stage fragment -DENABLE_CLAMP //DISABLED_TEST:SIMPLE(filecheck=SPIRV):-target spirv-assembly -entry fragmentMain -stage fragment -DENABLE_CLAMP -emit-spirv-directly //DISABLED_TEST:SIMPLE(filecheck=DXIL):-target dxil-assembly -entry fragmentMain -stage fragment @@ -84,14 +85,12 @@ void fragmentMain( float v : VARYING, uniform Texture2D texture_2D, -// SPIRV: OpTypeImage -// SPIRV-SAME: 2D +// SPIRV-DAG: OpTypeImage {{.*}} 2D // HLSL-DAG: Texture2D{{.*}}register(t0) uniform Texture3D texture_3D, -// SPIRV: OpTypeImage -// SPIRV-SAME: 3D +// SPIRV-DAG: OpTypeImage {{.*}} 3D // HLSL-DAG: Texture3D{{.*}}register(t1) -- cgit v1.2.3