Overridable constants vulkan implementation and tests
Add vulkan backend implementations and tests.
Disabled some tests that fail due to tint missing
features and issues.
Bug: dawn:1041, tint:1155
Change-Id: Iac161317450cff59627e08b1228bffde4cef71da
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64981
Commit-Queue: Shrek Shao <shrekshao@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/dawn_native/ComputePipeline.cpp b/src/dawn_native/ComputePipeline.cpp
index 8360b56..f789235 100644
--- a/src/dawn_native/ComputePipeline.cpp
+++ b/src/dawn_native/ComputePipeline.cpp
@@ -30,9 +30,10 @@
DAWN_TRY(device->ValidateObject(descriptor->layout));
}
- return ValidateProgrammableStage(device, descriptor->compute.module,
- descriptor->compute.entryPoint, descriptor->layout,
- SingleShaderStage::Compute);
+ return ValidateProgrammableStage(
+ device, descriptor->compute.module, descriptor->compute.entryPoint,
+ descriptor->compute.constantCount, descriptor->compute.constants, descriptor->layout,
+ SingleShaderStage::Compute);
}
// ComputePipelineBase
@@ -43,7 +44,8 @@
descriptor->layout,
descriptor->label,
{{SingleShaderStage::Compute, descriptor->compute.module,
- descriptor->compute.entryPoint}}) {
+ descriptor->compute.entryPoint, descriptor->compute.constantCount,
+ descriptor->compute.constants}}) {
}
ComputePipelineBase::ComputePipelineBase(DeviceBase* device, ObjectBase::ErrorTag tag)