• Home
  • Raw
  • Download

Lines Matching refs:context

19 #define ANGLE_VALIDATE_IS_GLES1(context)                                                        \  argument
22 if (context->getClientType() != EGL_OPENGL_API && context->getClientMajorVersion() > 1) \
24 context->validationError(GL_INVALID_OPERATION, kGLES1Only); \
33 bool ValidateAlphaFuncCommon(const Context *context, AlphaTestFunc func) in ValidateAlphaFuncCommon() argument
47 context->validationError(GL_INVALID_ENUM, kEnumNotSupported); in ValidateAlphaFuncCommon()
52 bool ValidateClientStateCommon(const Context *context, ClientVertexArrayType arrayType) in ValidateClientStateCommon() argument
54 ANGLE_VALIDATE_IS_GLES1(context); in ValidateClientStateCommon()
63 if (!context->getExtensions().pointSizeArrayOES) in ValidateClientStateCommon()
65 context->validationError(GL_INVALID_ENUM, kPointSizeArrayExtensionNotEnabled); in ValidateClientStateCommon()
70 context->validationError(GL_INVALID_ENUM, kInvalidClientState); in ValidateClientStateCommon()
75 bool ValidateBuiltinVertexAttributeCommon(const Context *context, in ValidateBuiltinVertexAttributeCommon() argument
82 ANGLE_VALIDATE_IS_GLES1(context); in ValidateBuiltinVertexAttributeCommon()
86 context->validationError(GL_INVALID_VALUE, kInvalidVertexPointerStride); in ValidateBuiltinVertexAttributeCommon()
109 if (!context->getExtensions().pointSizeArrayOES) in ValidateBuiltinVertexAttributeCommon()
111 context->validationError(GL_INVALID_ENUM, kPointSizeArrayExtensionNotEnabled); in ValidateBuiltinVertexAttributeCommon()
125 context->validationError(GL_INVALID_VALUE, kInvalidVertexPointerSize); in ValidateBuiltinVertexAttributeCommon()
134 context->validationError(GL_INVALID_ENUM, kInvalidVertexPointerType); in ValidateBuiltinVertexAttributeCommon()
142 context->validationError(GL_INVALID_ENUM, kInvalidVertexPointerType); in ValidateBuiltinVertexAttributeCommon()
152 context->validationError(GL_INVALID_ENUM, kInvalidVertexPointerType); in ValidateBuiltinVertexAttributeCommon()
157 context->validationError(GL_INVALID_ENUM, kInvalidVertexPointerType); in ValidateBuiltinVertexAttributeCommon()
164 bool ValidateLightCaps(const Context *context, GLenum light) in ValidateLightCaps() argument
166 if (light < GL_LIGHT0 || light >= GL_LIGHT0 + context->getCaps().maxLights) in ValidateLightCaps()
168 context->validationError(GL_INVALID_ENUM, kInvalidLight); in ValidateLightCaps()
175 bool ValidateLightCommon(const Context *context, in ValidateLightCommon() argument
181 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLightCommon()
183 if (!ValidateLightCaps(context, light)) in ValidateLightCommon()
199 context->validationError(GL_INVALID_VALUE, kLightParameterOutOfRange); in ValidateLightCommon()
210 context->validationError(GL_INVALID_VALUE, kLightParameterOutOfRange); in ValidateLightCommon()
219 context->validationError(GL_INVALID_VALUE, kLightParameterOutOfRange); in ValidateLightCommon()
224 context->validationError(GL_INVALID_ENUM, kInvalidLightParameter); in ValidateLightCommon()
229 bool ValidateLightSingleComponent(const Context *context, in ValidateLightSingleComponent() argument
234 if (!ValidateLightCommon(context, light, pname, &param)) in ValidateLightSingleComponent()
241 context->validationError(GL_INVALID_ENUM, kInvalidLightParameter); in ValidateLightSingleComponent()
248 bool ValidateMaterialCommon(const Context *context, in ValidateMaterialCommon() argument
264 context->validationError(GL_INVALID_VALUE, kMaterialParameterOutOfRange); in ValidateMaterialCommon()
269 context->validationError(GL_INVALID_ENUM, kInvalidMaterialParameter); in ValidateMaterialCommon()
274 bool ValidateMaterialSetting(const Context *context, in ValidateMaterialSetting() argument
279 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMaterialSetting()
283 context->validationError(GL_INVALID_ENUM, kInvalidMaterialFace); in ValidateMaterialSetting()
287 return ValidateMaterialCommon(context, face, pname, params); in ValidateMaterialSetting()
290 bool ValidateMaterialQuery(const Context *context, GLenum face, MaterialParameter pname) in ValidateMaterialQuery() argument
292 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMaterialQuery()
296 context->validationError(GL_INVALID_ENUM, kInvalidMaterialFace); in ValidateMaterialQuery()
302 return ValidateMaterialCommon(context, face, pname, validateParams); in ValidateMaterialQuery()
305 bool ValidateMaterialSingleComponent(const Context *context, in ValidateMaterialSingleComponent() argument
310 if (!ValidateMaterialSetting(context, face, pname, &param)) in ValidateMaterialSingleComponent()
317 context->validationError(GL_INVALID_ENUM, kInvalidMaterialParameter); in ValidateMaterialSingleComponent()
324 bool ValidateLightModelCommon(const Context *context, GLenum pname) in ValidateLightModelCommon() argument
326 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLightModelCommon()
333 context->validationError(GL_INVALID_ENUM, kInvalidLightModelParameter); in ValidateLightModelCommon()
338 bool ValidateLightModelSingleComponent(const Context *context, GLenum pname) in ValidateLightModelSingleComponent() argument
340 if (!ValidateLightModelCommon(context, pname)) in ValidateLightModelSingleComponent()
350 context->validationError(GL_INVALID_ENUM, kInvalidLightModelParameter); in ValidateLightModelSingleComponent()
355 bool ValidateClipPlaneCommon(const Context *context, GLenum plane) in ValidateClipPlaneCommon() argument
357 ANGLE_VALIDATE_IS_GLES1(context); in ValidateClipPlaneCommon()
359 if (plane < GL_CLIP_PLANE0 || plane >= GL_CLIP_PLANE0 + context->getCaps().maxClipPlanes) in ValidateClipPlaneCommon()
361 context->validationError(GL_INVALID_ENUM, kInvalidClipPlane); in ValidateClipPlaneCommon()
368 bool ValidateFogCommon(const Context *context, GLenum pname, const GLfloat *params) in ValidateFogCommon() argument
370 ANGLE_VALIDATE_IS_GLES1(context); in ValidateFogCommon()
384 context->validationError(GL_INVALID_VALUE, kInvalidFogMode); in ValidateFogCommon()
395 context->validationError(GL_INVALID_VALUE, kInvalidFogDensity); in ValidateFogCommon()
400 context->validationError(GL_INVALID_ENUM, kInvalidFogParameter); in ValidateFogCommon()
406 bool ValidateTexEnvCommon(const Context *context, in ValidateTexEnvCommon() argument
411 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTexEnvCommon()
431 context->validationError(GL_INVALID_VALUE, kInvalidTextureEnvMode); in ValidateTexEnvCommon()
453 context->validationError(GL_INVALID_VALUE, kInvalidTextureCombine); in ValidateTexEnvCommon()
458 context->validationError(GL_INVALID_VALUE, kInvalidTextureCombine); in ValidateTexEnvCommon()
479 context->validationError(GL_INVALID_VALUE, kInvalidTextureCombineSrc); in ValidateTexEnvCommon()
503 context->validationError(GL_INVALID_VALUE, kInvalidTextureCombine); in ValidateTexEnvCommon()
508 context->validationError(GL_INVALID_VALUE, kInvalidTextureCombineOp); in ValidateTexEnvCommon()
517 context->validationError(GL_INVALID_VALUE, kInvalidTextureEnvScale); in ValidateTexEnvCommon()
524 context->validationError(GL_INVALID_ENUM, kInvalidTextureEnvParameter); in ValidateTexEnvCommon()
529 if (!context->getExtensions().pointSpriteOES) in ValidateTexEnvCommon()
531 context->validationError(GL_INVALID_ENUM, kInvalidTextureEnvTarget); in ValidateTexEnvCommon()
539 context->validationError(GL_INVALID_ENUM, kInvalidTextureEnvParameter); in ValidateTexEnvCommon()
544 context->validationError(GL_INVALID_ENUM, kInvalidTextureEnvTarget); in ValidateTexEnvCommon()
550 bool ValidateGetTexEnvCommon(const Context *context, in ValidateGetTexEnvCommon() argument
589 return ValidateTexEnvCommon(context, target, pname, validateParams); in ValidateGetTexEnvCommon()
592 bool ValidatePointParameterCommon(const Context *context, in ValidatePointParameterCommon() argument
596 ANGLE_VALIDATE_IS_GLES1(context); in ValidatePointParameterCommon()
608 context->validationError(GL_INVALID_VALUE, kInvalidPointParameterValue); in ValidatePointParameterCommon()
614 context->validationError(GL_INVALID_ENUM, kInvalidPointParameter); in ValidatePointParameterCommon()
621 bool ValidatePointSizeCommon(const Context *context, GLfloat size) in ValidatePointSizeCommon() argument
623 ANGLE_VALIDATE_IS_GLES1(context); in ValidatePointSizeCommon()
627 context->validationError(GL_INVALID_VALUE, kInvalidPointSizeValue); in ValidatePointSizeCommon()
634 bool ValidateDrawTexCommon(const Context *context, float width, float height) in ValidateDrawTexCommon() argument
636 ANGLE_VALIDATE_IS_GLES1(context); in ValidateDrawTexCommon()
640 context->validationError(GL_INVALID_VALUE, kNonPositiveDrawTextureDimension); in ValidateDrawTexCommon()
652 bool ValidateAlphaFunc(const Context *context, AlphaTestFunc func, GLfloat ref) in ValidateAlphaFunc() argument
654 ANGLE_VALIDATE_IS_GLES1(context); in ValidateAlphaFunc()
655 return ValidateAlphaFuncCommon(context, func); in ValidateAlphaFunc()
658 bool ValidateAlphaFuncx(const Context *context, AlphaTestFunc func, GLfixed ref) in ValidateAlphaFuncx() argument
660 ANGLE_VALIDATE_IS_GLES1(context); in ValidateAlphaFuncx()
661 return ValidateAlphaFuncCommon(context, func); in ValidateAlphaFuncx()
664 bool ValidateClearColorx(const Context *context, in ValidateClearColorx() argument
670 ANGLE_VALIDATE_IS_GLES1(context); in ValidateClearColorx()
674 bool ValidateClearDepthx(const Context *context, GLfixed depth) in ValidateClearDepthx() argument
676 ANGLE_VALIDATE_IS_GLES1(context); in ValidateClearDepthx()
680 bool ValidateClientActiveTexture(const Context *context, GLenum texture) in ValidateClientActiveTexture() argument
682 ANGLE_VALIDATE_IS_GLES1(context); in ValidateClientActiveTexture()
683 return ValidateMultitextureUnit(context, texture); in ValidateClientActiveTexture()
686 bool ValidateClipPlanef(const Context *context, GLenum plane, const GLfloat *eqn) in ValidateClipPlanef() argument
688 return ValidateClipPlaneCommon(context, plane); in ValidateClipPlanef()
691 bool ValidateClipPlanex(const Context *context, GLenum plane, const GLfixed *equation) in ValidateClipPlanex() argument
693 return ValidateClipPlaneCommon(context, plane); in ValidateClipPlanex()
696 bool ValidateColor4f(const Context *context, in ValidateColor4f() argument
702 ANGLE_VALIDATE_IS_GLES1(context); in ValidateColor4f()
706 bool ValidateColor4ub(const Context *context, in ValidateColor4ub() argument
712 ANGLE_VALIDATE_IS_GLES1(context); in ValidateColor4ub()
716 bool ValidateColor4x(const Context *context, in ValidateColor4x() argument
722 ANGLE_VALIDATE_IS_GLES1(context); in ValidateColor4x()
726 bool ValidateColorPointer(const Context *context, in ValidateColorPointer() argument
732 return ValidateBuiltinVertexAttributeCommon(context, ClientVertexArrayType::Color, size, type, in ValidateColorPointer()
736 bool ValidateCullFace(const Context *context, GLenum mode) in ValidateCullFace() argument
742 bool ValidateDepthRangex(const Context *context, GLfixed n, GLfixed f) in ValidateDepthRangex() argument
744 ANGLE_VALIDATE_IS_GLES1(context); in ValidateDepthRangex()
745 if (context->getExtensions().webglCompatibility && n > f) in ValidateDepthRangex()
747 context->validationError(GL_INVALID_OPERATION, kInvalidDepthRange); in ValidateDepthRangex()
754 bool ValidateDisableClientState(const Context *context, ClientVertexArrayType arrayType) in ValidateDisableClientState() argument
756 return ValidateClientStateCommon(context, arrayType); in ValidateDisableClientState()
759 bool ValidateEnableClientState(const Context *context, ClientVertexArrayType arrayType) in ValidateEnableClientState() argument
761 return ValidateClientStateCommon(context, arrayType); in ValidateEnableClientState()
764 bool ValidateFogf(const Context *context, GLenum pname, GLfloat param) in ValidateFogf() argument
766 return ValidateFogCommon(context, pname, &param); in ValidateFogf()
769 bool ValidateFogfv(const Context *context, GLenum pname, const GLfloat *params) in ValidateFogfv() argument
771 return ValidateFogCommon(context, pname, params); in ValidateFogfv()
774 bool ValidateFogx(const Context *context, GLenum pname, GLfixed param) in ValidateFogx() argument
776 ANGLE_VALIDATE_IS_GLES1(context); in ValidateFogx()
779 return ValidateFogCommon(context, pname, &asFloat); in ValidateFogx()
782 bool ValidateFogxv(const Context *context, GLenum pname, const GLfixed *params) in ValidateFogxv() argument
784 ANGLE_VALIDATE_IS_GLES1(context); in ValidateFogxv()
800 return ValidateFogCommon(context, pname, paramsf); in ValidateFogxv()
803 bool ValidateFrustumf(const Context *context, in ValidateFrustumf() argument
811 ANGLE_VALIDATE_IS_GLES1(context); in ValidateFrustumf()
814 context->validationError(GL_INVALID_VALUE, kInvalidProjectionMatrix); in ValidateFrustumf()
819 bool ValidateFrustumx(const Context *context, in ValidateFrustumx() argument
827 ANGLE_VALIDATE_IS_GLES1(context); in ValidateFrustumx()
830 context->validationError(GL_INVALID_VALUE, kInvalidProjectionMatrix); in ValidateFrustumx()
835 bool ValidateGetBufferParameteriv(const Context *context, in ValidateGetBufferParameteriv() argument
844 bool ValidateGetClipPlanef(const Context *context, GLenum plane, const GLfloat *equation) in ValidateGetClipPlanef() argument
846 return ValidateClipPlaneCommon(context, plane); in ValidateGetClipPlanef()
849 bool ValidateGetClipPlanex(const Context *context, GLenum plane, const GLfixed *equation) in ValidateGetClipPlanex() argument
851 return ValidateClipPlaneCommon(context, plane); in ValidateGetClipPlanex()
854 bool ValidateGetFixedv(const Context *context, GLenum pname, const GLfixed *params) in ValidateGetFixedv() argument
856 ANGLE_VALIDATE_IS_GLES1(context); in ValidateGetFixedv()
859 return ValidateStateQuery(context, pname, &nativeType, &numParams); in ValidateGetFixedv()
862 bool ValidateGetLightfv(const Context *context, in ValidateGetLightfv() argument
868 return ValidateLightCommon(context, light, pname, validateParams); in ValidateGetLightfv()
871 bool ValidateGetLightxv(const Context *context, in ValidateGetLightxv() argument
877 return ValidateLightCommon(context, light, pname, validateParams); in ValidateGetLightxv()
880 bool ValidateGetMaterialfv(const Context *context, in ValidateGetMaterialfv() argument
885 return ValidateMaterialQuery(context, face, pname); in ValidateGetMaterialfv()
888 bool ValidateGetMaterialxv(const Context *context, in ValidateGetMaterialxv() argument
893 return ValidateMaterialQuery(context, face, pname); in ValidateGetMaterialxv()
896 bool ValidateGetTexEnvfv(const Context *context, in ValidateGetTexEnvfv() argument
901 return ValidateGetTexEnvCommon(context, target, pname); in ValidateGetTexEnvfv()
904 bool ValidateGetTexEnviv(const Context *context, in ValidateGetTexEnviv() argument
909 return ValidateGetTexEnvCommon(context, target, pname); in ValidateGetTexEnviv()
912 bool ValidateGetTexEnvxv(const Context *context, in ValidateGetTexEnvxv() argument
917 return ValidateGetTexEnvCommon(context, target, pname); in ValidateGetTexEnvxv()
920 bool ValidateGetTexParameterxv(const Context *context, in ValidateGetTexParameterxv() argument
925 ANGLE_VALIDATE_IS_GLES1(context); in ValidateGetTexParameterxv()
927 if (!ValidateGetTexParameterBase(context, target, pname, nullptr)) in ValidateGetTexParameterxv()
935 bool ValidateLightModelf(const Context *context, GLenum pname, GLfloat param) in ValidateLightModelf() argument
937 return ValidateLightModelSingleComponent(context, pname); in ValidateLightModelf()
940 bool ValidateLightModelfv(const Context *context, GLenum pname, const GLfloat *params) in ValidateLightModelfv() argument
942 return ValidateLightModelCommon(context, pname); in ValidateLightModelfv()
945 bool ValidateLightModelx(const Context *context, GLenum pname, GLfixed param) in ValidateLightModelx() argument
947 return ValidateLightModelSingleComponent(context, pname); in ValidateLightModelx()
950 bool ValidateLightModelxv(const Context *context, GLenum pname, const GLfixed *param) in ValidateLightModelxv() argument
952 return ValidateLightModelCommon(context, pname); in ValidateLightModelxv()
955 bool ValidateLightf(const Context *context, GLenum light, LightParameter pname, GLfloat param) in ValidateLightf() argument
957 return ValidateLightSingleComponent(context, light, pname, param); in ValidateLightf()
960 bool ValidateLightfv(const Context *context, in ValidateLightfv() argument
965 return ValidateLightCommon(context, light, pname, params); in ValidateLightfv()
968 bool ValidateLightx(const Context *context, GLenum light, LightParameter pname, GLfixed param) in ValidateLightx() argument
970 return ValidateLightSingleComponent(context, light, pname, ConvertFixedToFloat(param)); in ValidateLightx()
973 bool ValidateLightxv(const Context *context, in ValidateLightxv() argument
984 return ValidateLightCommon(context, light, pname, paramsf); in ValidateLightxv()
987 bool ValidateLineWidthx(const Context *context, GLfixed width) in ValidateLineWidthx() argument
989 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLineWidthx()
992 context->validationError(GL_INVALID_VALUE, kInvalidWidth); in ValidateLineWidthx()
999 bool ValidateLoadIdentity(const Context *context) in ValidateLoadIdentity() argument
1001 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLoadIdentity()
1005 bool ValidateLoadMatrixf(const Context *context, const GLfloat *m) in ValidateLoadMatrixf() argument
1007 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLoadMatrixf()
1011 bool ValidateLoadMatrixx(const Context *context, const GLfixed *m) in ValidateLoadMatrixx() argument
1013 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLoadMatrixx()
1017 bool ValidateLogicOp(const Context *context, LogicalOperation opcode) in ValidateLogicOp() argument
1019 ANGLE_VALIDATE_IS_GLES1(context); in ValidateLogicOp()
1040 context->validationError(GL_INVALID_ENUM, kInvalidLogicOp); in ValidateLogicOp()
1045 bool ValidateMaterialf(const Context *context, GLenum face, MaterialParameter pname, GLfloat param) in ValidateMaterialf() argument
1047 return ValidateMaterialSingleComponent(context, face, pname, param); in ValidateMaterialf()
1050 bool ValidateMaterialfv(const Context *context, in ValidateMaterialfv() argument
1055 return ValidateMaterialSetting(context, face, pname, params); in ValidateMaterialfv()
1058 bool ValidateMaterialx(const Context *context, GLenum face, MaterialParameter pname, GLfixed param) in ValidateMaterialx() argument
1060 return ValidateMaterialSingleComponent(context, face, pname, ConvertFixedToFloat(param)); in ValidateMaterialx()
1063 bool ValidateMaterialxv(const Context *context, in ValidateMaterialxv() argument
1075 return ValidateMaterialSetting(context, face, pname, paramsf); in ValidateMaterialxv()
1078 bool ValidateMatrixMode(const Context *context, MatrixType mode) in ValidateMatrixMode() argument
1080 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMatrixMode()
1088 context->validationError(GL_INVALID_ENUM, kInvalidMatrixMode); in ValidateMatrixMode()
1093 bool ValidateMultMatrixf(const Context *context, const GLfloat *m) in ValidateMultMatrixf() argument
1095 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMultMatrixf()
1099 bool ValidateMultMatrixx(const Context *context, const GLfixed *m) in ValidateMultMatrixx() argument
1101 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMultMatrixx()
1105 bool ValidateMultiTexCoord4f(const Context *context, in ValidateMultiTexCoord4f() argument
1112 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMultiTexCoord4f()
1113 return ValidateMultitextureUnit(context, target); in ValidateMultiTexCoord4f()
1116 bool ValidateMultiTexCoord4x(const Context *context, in ValidateMultiTexCoord4x() argument
1123 ANGLE_VALIDATE_IS_GLES1(context); in ValidateMultiTexCoord4x()
1124 return ValidateMultitextureUnit(context, target); in ValidateMultiTexCoord4x()
1127 bool ValidateNormal3f(const Context *context, GLfloat nx, GLfloat ny, GLfloat nz) in ValidateNormal3f() argument
1129 ANGLE_VALIDATE_IS_GLES1(context); in ValidateNormal3f()
1133 bool ValidateNormal3x(const Context *context, GLfixed nx, GLfixed ny, GLfixed nz) in ValidateNormal3x() argument
1135 ANGLE_VALIDATE_IS_GLES1(context); in ValidateNormal3x()
1139 bool ValidateNormalPointer(const Context *context, in ValidateNormalPointer() argument
1144 return ValidateBuiltinVertexAttributeCommon(context, ClientVertexArrayType::Normal, 3, type, in ValidateNormalPointer()
1148 bool ValidateOrthof(const Context *context, in ValidateOrthof() argument
1156 ANGLE_VALIDATE_IS_GLES1(context); in ValidateOrthof()
1162 context->validationError(GL_INVALID_VALUE, kInvalidProjectionMatrix); in ValidateOrthof()
1167 bool ValidateOrthox(const Context *context, in ValidateOrthox() argument
1175 ANGLE_VALIDATE_IS_GLES1(context); in ValidateOrthox()
1178 context->validationError(GL_INVALID_VALUE, kInvalidProjectionMatrix); in ValidateOrthox()
1183 bool ValidatePointParameterf(const Context *context, PointParameter pname, GLfloat param) in ValidatePointParameterf() argument
1188 context->validationError(GL_INVALID_ENUM, kInvalidPointParameter); in ValidatePointParameterf()
1192 return ValidatePointParameterCommon(context, pname, &param); in ValidatePointParameterf()
1195 bool ValidatePointParameterfv(const Context *context, PointParameter pname, const GLfloat *params) in ValidatePointParameterfv() argument
1197 return ValidatePointParameterCommon(context, pname, params); in ValidatePointParameterfv()
1200 bool ValidatePointParameterx(const Context *context, PointParameter pname, GLfixed param) in ValidatePointParameterx() argument
1205 context->validationError(GL_INVALID_ENUM, kInvalidPointParameter); in ValidatePointParameterx()
1210 return ValidatePointParameterCommon(context, pname, &paramf); in ValidatePointParameterx()
1213 bool ValidatePointParameterxv(const Context *context, PointParameter pname, const GLfixed *params) in ValidatePointParameterxv() argument
1220 return ValidatePointParameterCommon(context, pname, paramsf); in ValidatePointParameterxv()
1223 bool ValidatePointSize(const Context *context, GLfloat size) in ValidatePointSize() argument
1225 return ValidatePointSizeCommon(context, size); in ValidatePointSize()
1228 bool ValidatePointSizex(const Context *context, GLfixed size) in ValidatePointSizex() argument
1230 return ValidatePointSizeCommon(context, ConvertFixedToFloat(size)); in ValidatePointSizex()
1233 bool ValidatePolygonOffsetx(const Context *context, GLfixed factor, GLfixed units) in ValidatePolygonOffsetx() argument
1235 ANGLE_VALIDATE_IS_GLES1(context); in ValidatePolygonOffsetx()
1239 bool ValidatePopMatrix(const Context *context) in ValidatePopMatrix() argument
1241 ANGLE_VALIDATE_IS_GLES1(context); in ValidatePopMatrix()
1242 const auto &stack = context->getState().gles1().currentMatrixStack(); in ValidatePopMatrix()
1245 context->validationError(GL_STACK_UNDERFLOW, kMatrixStackUnderflow); in ValidatePopMatrix()
1251 bool ValidatePushMatrix(const Context *context) in ValidatePushMatrix() argument
1253 ANGLE_VALIDATE_IS_GLES1(context); in ValidatePushMatrix()
1254 const auto &stack = context->getState().gles1().currentMatrixStack(); in ValidatePushMatrix()
1257 context->validationError(GL_STACK_OVERFLOW, kMatrixStackOverflow); in ValidatePushMatrix()
1263 bool ValidateRotatef(const Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z) in ValidateRotatef() argument
1265 ANGLE_VALIDATE_IS_GLES1(context); in ValidateRotatef()
1269 bool ValidateRotatex(const Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z) in ValidateRotatex() argument
1271 ANGLE_VALIDATE_IS_GLES1(context); in ValidateRotatex()
1275 bool ValidateSampleCoveragex(const Context *context, GLclampx value, GLboolean invert) in ValidateSampleCoveragex() argument
1277 ANGLE_VALIDATE_IS_GLES1(context); in ValidateSampleCoveragex()
1281 bool ValidateScalef(const Context *context, GLfloat x, GLfloat y, GLfloat z) in ValidateScalef() argument
1283 ANGLE_VALIDATE_IS_GLES1(context); in ValidateScalef()
1287 bool ValidateScalex(const Context *context, GLfixed x, GLfixed y, GLfixed z) in ValidateScalex() argument
1289 ANGLE_VALIDATE_IS_GLES1(context); in ValidateScalex()
1293 bool ValidateShadeModel(const Context *context, ShadingModel mode) in ValidateShadeModel() argument
1295 ANGLE_VALIDATE_IS_GLES1(context); in ValidateShadeModel()
1302 context->validationError(GL_INVALID_ENUM, kInvalidShadingModel); in ValidateShadeModel()
1307 bool ValidateTexCoordPointer(const Context *context, in ValidateTexCoordPointer() argument
1313 return ValidateBuiltinVertexAttributeCommon(context, ClientVertexArrayType::TextureCoord, size, in ValidateTexCoordPointer()
1317 bool ValidateTexEnvf(const Context *context, in ValidateTexEnvf() argument
1322 return ValidateTexEnvCommon(context, target, pname, &param); in ValidateTexEnvf()
1325 bool ValidateTexEnvfv(const Context *context, in ValidateTexEnvfv() argument
1330 return ValidateTexEnvCommon(context, target, pname, params); in ValidateTexEnvfv()
1333 bool ValidateTexEnvi(const Context *context, in ValidateTexEnvi() argument
1339 return ValidateTexEnvCommon(context, target, pname, &paramf); in ValidateTexEnvi()
1342 bool ValidateTexEnviv(const Context *context, in ValidateTexEnviv() argument
1352 return ValidateTexEnvCommon(context, target, pname, paramsf); in ValidateTexEnviv()
1355 bool ValidateTexEnvx(const Context *context, in ValidateTexEnvx() argument
1360 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTexEnvx()
1363 return ValidateTexEnvCommon(context, target, pname, paramsf); in ValidateTexEnvx()
1366 bool ValidateTexEnvxv(const Context *context, in ValidateTexEnvxv() argument
1371 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTexEnvxv()
1374 return ValidateTexEnvCommon(context, target, pname, paramsf); in ValidateTexEnvxv()
1377 bool ValidateTexParameterBaseForGLfixed(const Context *context, in ValidateTexParameterBaseForGLfixed() argument
1397 return ValidateTexParameterBase(context, target, pname, bufSize, vectorParams, &paramValue); in ValidateTexParameterBaseForGLfixed()
1400 bool ValidateTexParameterx(const Context *context, TextureType target, GLenum pname, GLfixed param) in ValidateTexParameterx() argument
1402 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTexParameterx()
1403 return ValidateTexParameterBaseForGLfixed(context, target, pname, -1, false, &param); in ValidateTexParameterx()
1406 bool ValidateTexParameterxv(const Context *context, in ValidateTexParameterxv() argument
1411 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTexParameterxv()
1412 return ValidateTexParameterBaseForGLfixed(context, target, pname, -1, true, params); in ValidateTexParameterxv()
1415 bool ValidateTranslatef(const Context *context, GLfloat x, GLfloat y, GLfloat z) in ValidateTranslatef() argument
1417 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTranslatef()
1421 bool ValidateTranslatex(const Context *context, GLfixed x, GLfixed y, GLfixed z) in ValidateTranslatex() argument
1423 ANGLE_VALIDATE_IS_GLES1(context); in ValidateTranslatex()
1427 bool ValidateVertexPointer(const Context *context, in ValidateVertexPointer() argument
1433 return ValidateBuiltinVertexAttributeCommon(context, ClientVertexArrayType::Vertex, size, type, in ValidateVertexPointer()
1437 bool ValidateDrawTexfOES(const Context *context, in ValidateDrawTexfOES() argument
1444 return ValidateDrawTexCommon(context, width, height); in ValidateDrawTexfOES()
1447 bool ValidateDrawTexfvOES(const Context *context, const GLfloat *coords) in ValidateDrawTexfvOES() argument
1449 return ValidateDrawTexCommon(context, coords[3], coords[4]); in ValidateDrawTexfvOES()
1452 bool ValidateDrawTexiOES(const Context *context, in ValidateDrawTexiOES() argument
1459 return ValidateDrawTexCommon(context, static_cast<GLfloat>(width), in ValidateDrawTexiOES()
1463 bool ValidateDrawTexivOES(const Context *context, const GLint *coords) in ValidateDrawTexivOES() argument
1465 return ValidateDrawTexCommon(context, static_cast<GLfloat>(coords[3]), in ValidateDrawTexivOES()
1469 bool ValidateDrawTexsOES(const Context *context, in ValidateDrawTexsOES() argument
1476 return ValidateDrawTexCommon(context, static_cast<GLfloat>(width), in ValidateDrawTexsOES()
1480 bool ValidateDrawTexsvOES(const Context *context, const GLshort *coords) in ValidateDrawTexsvOES() argument
1482 return ValidateDrawTexCommon(context, static_cast<GLfloat>(coords[3]), in ValidateDrawTexsvOES()
1486 bool ValidateDrawTexxOES(const Context *context, in ValidateDrawTexxOES() argument
1493 return ValidateDrawTexCommon(context, ConvertFixedToFloat(width), ConvertFixedToFloat(height)); in ValidateDrawTexxOES()
1496 bool ValidateDrawTexxvOES(const Context *context, const GLfixed *coords) in ValidateDrawTexxvOES() argument
1498 return ValidateDrawTexCommon(context, ConvertFixedToFloat(coords[3]), in ValidateDrawTexxvOES()
1502 bool ValidateCurrentPaletteMatrixOES(const Context *context, GLuint matrixpaletteindex) in ValidateCurrentPaletteMatrixOES() argument
1508 bool ValidateLoadPaletteFromModelViewMatrixOES(const Context *context) in ValidateLoadPaletteFromModelViewMatrixOES() argument
1514 bool ValidateMatrixIndexPointerOES(const Context *context, in ValidateMatrixIndexPointerOES() argument
1524 bool ValidateWeightPointerOES(const Context *context, in ValidateWeightPointerOES() argument
1534 bool ValidatePointSizePointerOES(const Context *context, in ValidatePointSizePointerOES() argument
1539 return ValidateBuiltinVertexAttributeCommon(context, ClientVertexArrayType::PointSize, 1, type, in ValidatePointSizePointerOES()
1543 bool ValidateQueryMatrixxOES(const Context *context, const GLfixed *mantissa, const GLint *exponent) in ValidateQueryMatrixxOES() argument
1549 bool ValidateGenFramebuffersOES(const Context *context, in ValidateGenFramebuffersOES() argument
1553 if (!context->getExtensions().framebufferObjectOES) in ValidateGenFramebuffersOES()
1555 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGenFramebuffersOES()
1559 return ValidateGenOrDelete(context, n); in ValidateGenFramebuffersOES()
1562 bool ValidateDeleteFramebuffersOES(const Context *context, in ValidateDeleteFramebuffersOES() argument
1566 if (!context->getExtensions().framebufferObjectOES) in ValidateDeleteFramebuffersOES()
1568 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDeleteFramebuffersOES()
1572 return ValidateGenOrDelete(context, n); in ValidateDeleteFramebuffersOES()
1575 bool ValidateGenRenderbuffersOES(const Context *context, in ValidateGenRenderbuffersOES() argument
1579 if (!context->getExtensions().framebufferObjectOES) in ValidateGenRenderbuffersOES()
1581 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGenRenderbuffersOES()
1585 return ValidateGenOrDelete(context, n); in ValidateGenRenderbuffersOES()
1588 bool ValidateDeleteRenderbuffersOES(const Context *context, in ValidateDeleteRenderbuffersOES() argument
1592 if (!context->getExtensions().framebufferObjectOES) in ValidateDeleteRenderbuffersOES()
1594 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDeleteRenderbuffersOES()
1598 return ValidateGenOrDelete(context, n); in ValidateDeleteRenderbuffersOES()
1601 bool ValidateBindFramebufferOES(const Context *context, GLenum target, FramebufferID framebuffer) in ValidateBindFramebufferOES() argument
1603 if (!context->getExtensions().framebufferObjectOES) in ValidateBindFramebufferOES()
1605 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBindFramebufferOES()
1609 return ValidateBindFramebufferBase(context, target, framebuffer); in ValidateBindFramebufferOES()
1612 bool ValidateBindRenderbufferOES(const Context *context, GLenum target, RenderbufferID renderbuffer) in ValidateBindRenderbufferOES() argument
1614 if (!context->getExtensions().framebufferObjectOES) in ValidateBindRenderbufferOES()
1616 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBindRenderbufferOES()
1620 return ValidateBindRenderbufferBase(context, target, renderbuffer); in ValidateBindRenderbufferOES()
1623 bool ValidateCheckFramebufferStatusOES(const Context *context, GLenum target) in ValidateCheckFramebufferStatusOES() argument
1625 if (!context->getExtensions().framebufferObjectOES) in ValidateCheckFramebufferStatusOES()
1627 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateCheckFramebufferStatusOES()
1631 if (!ValidFramebufferTarget(context, target)) in ValidateCheckFramebufferStatusOES()
1633 context->validationError(GL_INVALID_ENUM, kInvalidFramebufferTarget); in ValidateCheckFramebufferStatusOES()
1640 bool ValidateFramebufferRenderbufferOES(const Context *context, in ValidateFramebufferRenderbufferOES() argument
1646 if (!context->getExtensions().framebufferObjectOES) in ValidateFramebufferRenderbufferOES()
1648 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateFramebufferRenderbufferOES()
1652 return ValidateFramebufferRenderbufferBase(context, target, attachment, rbtarget, renderbuffer); in ValidateFramebufferRenderbufferOES()
1655 bool ValidateFramebufferTexture2DOES(const Context *context, in ValidateFramebufferTexture2DOES() argument
1662 if (!context->getExtensions().framebufferObjectOES) in ValidateFramebufferTexture2DOES()
1664 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateFramebufferTexture2DOES()
1670 context->validationError(GL_INVALID_VALUE, kInvalidFramebufferTextureLevel); in ValidateFramebufferTexture2DOES()
1674 if (!ValidateFramebufferTextureBase(context, target, attachment, texture, level)) in ValidateFramebufferTexture2DOES()
1681 Texture *tex = context->getTexture(texture); in ValidateFramebufferTexture2DOES()
1684 const Caps &caps = context->getCaps(); in ValidateFramebufferTexture2DOES()
1692 context->validationError(GL_INVALID_VALUE, kInvalidMipLevel); in ValidateFramebufferTexture2DOES()
1697 context->validationError(GL_INVALID_OPERATION, kInvalidTextureTarget); in ValidateFramebufferTexture2DOES()
1710 if (!context->getExtensions().textureCubeMapOES) in ValidateFramebufferTexture2DOES()
1712 context->validationError(GL_INVALID_ENUM, kInvalidTextureTarget); in ValidateFramebufferTexture2DOES()
1718 context->validationError(GL_INVALID_VALUE, kInvalidMipLevel); in ValidateFramebufferTexture2DOES()
1723 context->validationError(GL_INVALID_OPERATION, kTextureTargetMismatch); in ValidateFramebufferTexture2DOES()
1730 context->validationError(GL_INVALID_ENUM, kInvalidTextureTarget); in ValidateFramebufferTexture2DOES()
1738 bool ValidateGenerateMipmapOES(const Context *context, TextureType target) in ValidateGenerateMipmapOES() argument
1740 if (!context->getExtensions().framebufferObjectOES) in ValidateGenerateMipmapOES()
1742 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGenerateMipmapOES()
1746 return ValidateGenerateMipmapBase(context, target); in ValidateGenerateMipmapOES()
1749 bool ValidateGetFramebufferAttachmentParameterivOES(const Context *context, in ValidateGetFramebufferAttachmentParameterivOES() argument
1755 if (!context->getExtensions().framebufferObjectOES) in ValidateGetFramebufferAttachmentParameterivOES()
1757 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetFramebufferAttachmentParameterivOES()
1761 return ValidateGetFramebufferAttachmentParameterivBase(context, target, attachment, pname, in ValidateGetFramebufferAttachmentParameterivOES()
1765 bool ValidateGetRenderbufferParameterivOES(const Context *context, in ValidateGetRenderbufferParameterivOES() argument
1770 if (!context->getExtensions().framebufferObjectOES) in ValidateGetRenderbufferParameterivOES()
1772 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetRenderbufferParameterivOES()
1776 return ValidateGetRenderbufferParameterivBase(context, target, pname, nullptr); in ValidateGetRenderbufferParameterivOES()
1779 bool ValidateIsFramebufferOES(const Context *context, FramebufferID framebuffer) in ValidateIsFramebufferOES() argument
1781 if (!context->getExtensions().framebufferObjectOES) in ValidateIsFramebufferOES()
1783 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsFramebufferOES()
1790 bool ValidateIsRenderbufferOES(const Context *context, RenderbufferID renderbuffer) in ValidateIsRenderbufferOES() argument
1792 if (!context->getExtensions().framebufferObjectOES) in ValidateIsRenderbufferOES()
1794 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsRenderbufferOES()
1801 bool ValidateRenderbufferStorageOES(const Context *context, in ValidateRenderbufferStorageOES() argument
1807 if (!context->getExtensions().framebufferObjectOES) in ValidateRenderbufferStorageOES()
1809 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateRenderbufferStorageOES()
1813 return ValidateRenderbufferStorageParametersBase(context, target, 0, internalformat, width, in ValidateRenderbufferStorageOES()
1819 bool ValidateGetTexGenfvOES(const Context *context, in ValidateGetTexGenfvOES() argument
1828 bool ValidateGetTexGenivOES(const Context *context, GLenum coord, GLenum pname, const int *params) in ValidateGetTexGenivOES() argument
1834 bool ValidateGetTexGenxvOES(const Context *context, in ValidateGetTexGenxvOES() argument
1843 bool ValidateTexGenfvOES(const Context *context, GLenum coord, GLenum pname, const GLfloat *params) in ValidateTexGenfvOES() argument
1849 bool ValidateTexGenivOES(const Context *context, GLenum coord, GLenum pname, const GLint *param) in ValidateTexGenivOES() argument
1855 bool ValidateTexGenxvOES(const Context *context, GLenum coord, GLenum pname, const GLint *param) in ValidateTexGenxvOES() argument
1861 bool ValidateTexGenfOES(const Context *context, GLenum coord, GLenum pname, GLfloat param) in ValidateTexGenfOES() argument
1867 bool ValidateTexGeniOES(const Context *context, GLenum coord, GLenum pname, GLint param) in ValidateTexGeniOES() argument
1873 bool ValidateTexGenxOES(const Context *context, GLenum coord, GLenum pname, GLfixed param) in ValidateTexGenxOES() argument