xref: /aosp_15_r20/external/angle/src/libANGLE/entry_points_utils.cpp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker //
2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2022 The ANGLE Project Authors. All rights reserved.
3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file.
5*8975f5c5SAndroid Build Coastguard Worker //
6*8975f5c5SAndroid Build Coastguard Worker // entry_point_utils:
7*8975f5c5SAndroid Build Coastguard Worker //   These helpers are used in GL/GLES entry point routines.
8*8975f5c5SAndroid Build Coastguard Worker 
9*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/entry_points_utils.h"
10*8975f5c5SAndroid Build Coastguard Worker 
11*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/ErrorStrings.h"
12*8975f5c5SAndroid Build Coastguard Worker 
13*8975f5c5SAndroid Build Coastguard Worker namespace gl
14*8975f5c5SAndroid Build Coastguard Worker {
GeneratePixelLocalStorageActiveError(const PrivateState & state,ErrorSet * errors,angle::EntryPoint entryPoint)15*8975f5c5SAndroid Build Coastguard Worker bool GeneratePixelLocalStorageActiveError(const PrivateState &state,
16*8975f5c5SAndroid Build Coastguard Worker                                           ErrorSet *errors,
17*8975f5c5SAndroid Build Coastguard Worker                                           angle::EntryPoint entryPoint)
18*8975f5c5SAndroid Build Coastguard Worker {
19*8975f5c5SAndroid Build Coastguard Worker     ASSERT(state.getPixelLocalStorageActivePlanes() != 0);
20*8975f5c5SAndroid Build Coastguard Worker     errors->validationError(entryPoint, GL_INVALID_OPERATION, err::kPLSActive);
21*8975f5c5SAndroid Build Coastguard Worker     return false;
22*8975f5c5SAndroid Build Coastguard Worker }
23*8975f5c5SAndroid Build Coastguard Worker }  // namespace gl
24