Skip to content

Commit

Permalink
Fix test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
alelenv committed Jan 30, 2025
1 parent 40c12a5 commit c14c1db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/val/val_ray_query_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ OpDecorate %top_level_as Binding 0
%f32vec3_0 = OpConstantComposite %f32vec3 %f32_0 %f32_0 %f32_0
%f32vec4_0 = OpConstantComposite %f32vec4 %f32_0 %f32_0 %f32_0 %f32_0
%ptr_rq = OpTypePointer Private %type_rq
%ray_query = OpVariable %ptr_rq Private
%ptr_rq = OpTypePointer Function %type_rq
%ptr_as = OpTypePointer UniformConstant %type_as
%top_level_as = OpVariable %ptr_as UniformConstant
Expand All @@ -106,6 +105,8 @@ OpDecorate %top_level_as Binding 0
ss << R"(
%main = OpFunction %void None %func
%main_entry = OpLabel
%ray_query = OpVariable %ptr_rq Function
)";

ss << body;
Expand Down Expand Up @@ -642,8 +643,9 @@ TEST_F(ValidateRayQuery, ClusterASNV) {
%clusterid = OpRayQueryGetClusterIdNV %s32 %ray_query %s32_0
)";

CompileSuccessfully(GenerateShaderCode(body, cap, ext).c_str());
EXPECT_EQ(SPV_SUCCESS, ValidateInstructions());
CompileSuccessfully(GenerateShaderCode(body, cap, ext).c_str(),
SPV_ENV_VULKAN_1_2);
EXPECT_EQ(SPV_SUCCESS, ValidateInstructions(SPV_ENV_VULKAN_1_2));
}
} // namespace
} // namespace val
Expand Down

0 comments on commit c14c1db

Please sign in to comment.