mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
DEPS: Update Dawn standalone toolchains
Roll chromium/src/build c7876b5 .. 87b04ad Roll chromium/src/buildtools e1471b2 .. f0d740e Roll chromium/src/tools/clang df9b14e .. 3c4a622 Required to roll ANGLE as it now uses new Clang flags. Change-Id: I55caa9892ff65ebc4852b2d49df88908ee1ca3e7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88221 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
928a7d1e93
commit
6bdd6592d9
@@ -950,10 +950,8 @@ bool Validator::Function(const sem::Function* func,
|
||||
return false;
|
||||
}
|
||||
|
||||
auto workgroup_attr_count = 0;
|
||||
for (auto* attr : decl->attributes) {
|
||||
if (attr->Is<ast::WorkgroupAttribute>()) {
|
||||
workgroup_attr_count++;
|
||||
if (decl->PipelineStage() != ast::PipelineStage::kCompute) {
|
||||
AddError(
|
||||
"the workgroup_size attribute is only valid for compute stages",
|
||||
|
||||
@@ -2262,14 +2262,12 @@ uint32_t Builder::GenerateFunctionCall(const sem::Call* call,
|
||||
}
|
||||
ops.push_back(Operand::Int(func_id));
|
||||
|
||||
size_t arg_idx = 0;
|
||||
for (auto* arg : expr->args) {
|
||||
auto id = GenerateExpressionWithLoadIfNeeded(arg);
|
||||
if (id == 0) {
|
||||
return 0;
|
||||
}
|
||||
ops.push_back(Operand::Int(id));
|
||||
arg_idx++;
|
||||
}
|
||||
|
||||
if (!push_function_inst(spv::Op::OpFunctionCall, std::move(ops))) {
|
||||
|
||||
Reference in New Issue
Block a user