Skip to content

Commit b28716d

Browse files
committed
tests: get --target-env vulkan1.2 passing.
1 parent cda583e commit b28716d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

tests/ui/arch/ray_query_initialize_khr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// build-pass
2-
// compile-flags: -Ctarget-feature=+RayQueryKHR,+ext:SPV_KHR_ray_query
2+
// compile-flags: -Ctarget-feature=+RayTracingKHR,+RayQueryKHR,+ext:SPV_KHR_ray_tracing,+ext:SPV_KHR_ray_query
33

44
use glam::Vec3;
55
use spirv_std::ray_tracing::{AccelerationStructure, RayFlags, RayQuery};

tests/ui/dis/asm_op_decorate.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// normalize-stderr-test "OpExtension .SPV_KHR_vulkan_memory_model.\n" -> ""
66
// normalize-stderr-test "OpMemoryModel Logical Vulkan" -> "OpMemoryModel Logical Simple"
77

8+
// FIXME(eddyb) this should use revisions to track both the `vulkan1.2` output
9+
// and the pre-`vulkan1.2` output, but per-revisions `{only,ignore}-*` directives
10+
// are not supported in `compiletest-rs`.
11+
// ignore-vulkan1.2
12+
813
use spirv_std as _;
914

1015
fn add_decorate() {

tests/ui/image/sample_depth_reference/sample_lod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ pub fn main(
88
#[spirv(descriptor_set = 0, binding = 0)] image: &Image!(2D, type=f32, sampled),
99
#[spirv(descriptor_set = 1, binding = 1)] image_array: &Image!(2D, type=f32, arrayed, sampled),
1010
#[spirv(descriptor_set = 2, binding = 2)] sampler: &Sampler,
11-
#[spirv(descriptor_set = 3, binding = 3)] cubemap: &Image!(3D, type=f32),
11+
#[spirv(descriptor_set = 3, binding = 3)] cubemap: &Image!(3D, type=f32, sampled),
1212
output: &mut f32,
1313
) {
1414
let v2 = glam::Vec2::new(0.0, 1.0);
1515
let v3 = glam::Vec3A::new(0.0, 0.0, 1.0);
1616
*output = image.sample_depth_reference_by_lod(*sampler, v2, 1.0, 0.0);
1717
*output += image_array.sample_depth_reference_by_lod(*sampler, v3, 1.0, 0.0);
18-
*output += image_array.sample_depth_reference_by_lod(*sampler, v3, 1.0, 0.0);
18+
*output += cubemap.sample_depth_reference_by_lod(*sampler, v3, 1.0, 0.0);
1919
}

0 commit comments

Comments
 (0)