Fix WebGPU barrier test: Use QueueFamilyKHR scope (#2162)

This commit is contained in:
David Neto 2018-12-04 08:35:08 -05:00 committed by alan-baker
parent b1ff8ba5b9
commit d81a0c0ec4

View File

@ -69,6 +69,7 @@ OpCapability Shader
%workgroup = OpConstant %u32 2
%subgroup = OpConstant %u32 3
%invocation = OpConstant %u32 4
%queuefamily = OpConstant %u32 5
%none = OpConstant %u32 0
%acquire = OpConstant %u32 2
@ -248,7 +249,7 @@ OpControlBarrier %workgroup %workgroup %acquire_release_uniform_workgroup
TEST_F(ValidateBarriers, OpControlBarrierWebGPUSuccess) {
const std::string body = R"(
OpControlBarrier %workgroup %device %none
OpControlBarrier %workgroup %queuefamily %none
OpControlBarrier %workgroup %workgroup %acquire_release_uniform_workgroup
)";