Hash :
ee02014d
Author :
Date :
2024-03-22T11:52:35
Selectively wait for LinkSubTasks Backends have the option to request frontend to run their LinkSubTask post-link. Do not wait for such sub tasks during most glProgram APIs. Note that we do wait for these "post-link sub tasks" incase of a program relink or first use by a draw call. Bug: angleproject:8297 Change-Id: I936fb5a127570f9dfa567ee8cbc02e25c4b70a6b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5387064 Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
//
// Copyright 2022 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ProgramImpl.cpp: Implements the class methods for ProgramImpl.
#include "libANGLE/renderer/ProgramImpl.h"
namespace rx
{
std::vector<std::shared_ptr<LinkSubTask>> LinkTask::link(
const gl::ProgramLinkedResources &resources,
const gl::ProgramMergedVaryings &mergedVaryings,
bool *canSubTasksRunPostLinkOut)
{
UNREACHABLE();
return {};
}
std::vector<std::shared_ptr<LinkSubTask>> LinkTask::load(bool *canSubTasksRunPostLinkOut)
{
UNREACHABLE();
return {};
}
bool LinkTask::isLinkingInternally()
{
return false;
}
angle::Result ProgramImpl::onLabelUpdate(const gl::Context *context)
{
return angle::Result::Continue;
}
} // namespace rx