1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_entry_points.py using data from gl.xml.
3 //
4 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // entry_points_gl_2_1_autogen.cpp:
9 // Defines the GL 2.1 entry points.
10
11 #include "libGL/entry_points_gl_2_1_autogen.h"
12
13 #include "libANGLE/Context.h"
14 #include "libANGLE/Context.inl.h"
15 #include "libANGLE/entry_points_utils.h"
16 #include "libANGLE/gl_enum_utils.h"
17 #include "libANGLE/validationEGL.h"
18 #include "libANGLE/validationES.h"
19 #include "libANGLE/validationES1.h"
20 #include "libANGLE/validationES2.h"
21 #include "libANGLE/validationES3.h"
22 #include "libANGLE/validationES31.h"
23 #include "libANGLE/validationES32.h"
24 #include "libANGLE/validationESEXT.h"
25 #include "libANGLE/validationGL21_autogen.h"
26 #include "libGLESv2/global_state.h"
27
28 namespace gl
29 {
UniformMatrix2x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)30 void GL_APIENTRY UniformMatrix2x3fv(GLint location,
31 GLsizei count,
32 GLboolean transpose,
33 const GLfloat *value)
34 {
35 Context *context = GetValidGlobalContext();
36 EVENT("glUniformMatrix2x3fv",
37 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
38 "GLfloat *value = 0x%016" PRIxPTR "",
39 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
40
41 if (context)
42 {
43 UniformLocation locationPacked = FromGL<UniformLocation>(location);
44 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
45 bool isCallValid =
46 (context->skipValidation() ||
47 ValidateUniformMatrix2x3fv(context, locationPacked, count, transpose, value));
48 if (isCallValid)
49 {
50 context->uniformMatrix2x3fv(locationPacked, count, transpose, value);
51 }
52 ANGLE_CAPTURE(UniformMatrix2x3fv, isCallValid, context, locationPacked, count, transpose,
53 value);
54 }
55 }
56
UniformMatrix2x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)57 void GL_APIENTRY UniformMatrix2x4fv(GLint location,
58 GLsizei count,
59 GLboolean transpose,
60 const GLfloat *value)
61 {
62 Context *context = GetValidGlobalContext();
63 EVENT("glUniformMatrix2x4fv",
64 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
65 "GLfloat *value = 0x%016" PRIxPTR "",
66 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
67
68 if (context)
69 {
70 UniformLocation locationPacked = FromGL<UniformLocation>(location);
71 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
72 bool isCallValid =
73 (context->skipValidation() ||
74 ValidateUniformMatrix2x4fv(context, locationPacked, count, transpose, value));
75 if (isCallValid)
76 {
77 context->uniformMatrix2x4fv(locationPacked, count, transpose, value);
78 }
79 ANGLE_CAPTURE(UniformMatrix2x4fv, isCallValid, context, locationPacked, count, transpose,
80 value);
81 }
82 }
83
UniformMatrix3x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)84 void GL_APIENTRY UniformMatrix3x2fv(GLint location,
85 GLsizei count,
86 GLboolean transpose,
87 const GLfloat *value)
88 {
89 Context *context = GetValidGlobalContext();
90 EVENT("glUniformMatrix3x2fv",
91 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
92 "GLfloat *value = 0x%016" PRIxPTR "",
93 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
94
95 if (context)
96 {
97 UniformLocation locationPacked = FromGL<UniformLocation>(location);
98 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
99 bool isCallValid =
100 (context->skipValidation() ||
101 ValidateUniformMatrix3x2fv(context, locationPacked, count, transpose, value));
102 if (isCallValid)
103 {
104 context->uniformMatrix3x2fv(locationPacked, count, transpose, value);
105 }
106 ANGLE_CAPTURE(UniformMatrix3x2fv, isCallValid, context, locationPacked, count, transpose,
107 value);
108 }
109 }
110
UniformMatrix3x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)111 void GL_APIENTRY UniformMatrix3x4fv(GLint location,
112 GLsizei count,
113 GLboolean transpose,
114 const GLfloat *value)
115 {
116 Context *context = GetValidGlobalContext();
117 EVENT("glUniformMatrix3x4fv",
118 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
119 "GLfloat *value = 0x%016" PRIxPTR "",
120 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
121
122 if (context)
123 {
124 UniformLocation locationPacked = FromGL<UniformLocation>(location);
125 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
126 bool isCallValid =
127 (context->skipValidation() ||
128 ValidateUniformMatrix3x4fv(context, locationPacked, count, transpose, value));
129 if (isCallValid)
130 {
131 context->uniformMatrix3x4fv(locationPacked, count, transpose, value);
132 }
133 ANGLE_CAPTURE(UniformMatrix3x4fv, isCallValid, context, locationPacked, count, transpose,
134 value);
135 }
136 }
137
UniformMatrix4x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)138 void GL_APIENTRY UniformMatrix4x2fv(GLint location,
139 GLsizei count,
140 GLboolean transpose,
141 const GLfloat *value)
142 {
143 Context *context = GetValidGlobalContext();
144 EVENT("glUniformMatrix4x2fv",
145 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
146 "GLfloat *value = 0x%016" PRIxPTR "",
147 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
148
149 if (context)
150 {
151 UniformLocation locationPacked = FromGL<UniformLocation>(location);
152 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
153 bool isCallValid =
154 (context->skipValidation() ||
155 ValidateUniformMatrix4x2fv(context, locationPacked, count, transpose, value));
156 if (isCallValid)
157 {
158 context->uniformMatrix4x2fv(locationPacked, count, transpose, value);
159 }
160 ANGLE_CAPTURE(UniformMatrix4x2fv, isCallValid, context, locationPacked, count, transpose,
161 value);
162 }
163 }
164
UniformMatrix4x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)165 void GL_APIENTRY UniformMatrix4x3fv(GLint location,
166 GLsizei count,
167 GLboolean transpose,
168 const GLfloat *value)
169 {
170 Context *context = GetValidGlobalContext();
171 EVENT("glUniformMatrix4x3fv",
172 "context = %d, GLint location = %d, GLsizei count = %d, GLboolean transpose = %s, const "
173 "GLfloat *value = 0x%016" PRIxPTR "",
174 CID(context), location, count, GLbooleanToString(transpose), (uintptr_t)value);
175
176 if (context)
177 {
178 UniformLocation locationPacked = FromGL<UniformLocation>(location);
179 std::unique_lock<angle::GlobalMutex> shareContextLock = GetShareGroupLock(context);
180 bool isCallValid =
181 (context->skipValidation() ||
182 ValidateUniformMatrix4x3fv(context, locationPacked, count, transpose, value));
183 if (isCallValid)
184 {
185 context->uniformMatrix4x3fv(locationPacked, count, transpose, value);
186 }
187 ANGLE_CAPTURE(UniformMatrix4x3fv, isCallValid, context, locationPacked, count, transpose,
188 value);
189 }
190 }
191 } // namespace gl
192