Hash :
74cf6a3a
Author :
Date :
2023-07-12T14:44:17
Ensure lockless entry point validations only access private data Bug: angleproject:8224 Change-Id: I19e867923b088879f9f37d0a3b4ff8b681470be0 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4678352 Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Charlie Lao <cclao@google.com> Commit-Queue: 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.
//
// entry_point_utils:
// These helpers are used in GL/GLES entry point routines.
#include "libANGLE/entry_points_utils.h"
#include "libANGLE/ErrorStrings.h"
namespace gl
{
bool GeneratePixelLocalStorageActiveError(const PrivateState &state,
ErrorSet *errors,
angle::EntryPoint entryPoint)
{
ASSERT(state.getPixelLocalStorageActivePlanes() != 0);
errors->validationError(entryPoint, GL_INVALID_OPERATION, err::kPLSActive);
return false;
}
} // namespace gl