• Home
  • Raw
  • Download

Lines Matching full:context

10 #include "libANGLE/Context.h"
26 bool ValidateGetImageFormatAndType(const Context *context, ObjectT *obj, GLenum format, GLenum type) in ValidateGetImageFormatAndType() argument
28 GLenum implFormat = obj->getImplementationColorReadFormat(context); in ValidateGetImageFormatAndType()
31 context->validationError(GL_INVALID_ENUM, kInvalidFormat); in ValidateGetImageFormatAndType()
35 GLenum implType = obj->getImplementationColorReadType(context); in ValidateGetImageFormatAndType()
38 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateGetImageFormatAndType()
68 bool IsValidMemoryObjectParamater(const Context *context, GLenum pname) in IsValidMemoryObjectParamater() argument
80 bool ValidateObjectIdentifierAndName(const Context *context, GLenum identifier, GLuint name) in ValidateObjectIdentifierAndName() argument
82 bool isGLES11 = context->getClientVersion() == Version(1, 1); in ValidateObjectIdentifierAndName()
83 bool isGLES3 = context->getClientMajorVersion() >= 3; in ValidateObjectIdentifierAndName()
84 bool isGLES31 = context->getClientVersion() >= Version(3, 1); in ValidateObjectIdentifierAndName()
88 if (context->getBuffer({name}) == nullptr) in ValidateObjectIdentifierAndName()
90 context->validationError(GL_INVALID_OPERATION, kInvalidBufferName); in ValidateObjectIdentifierAndName()
98 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
101 if (context->getShader({name}) == nullptr) in ValidateObjectIdentifierAndName()
103 context->validationError(GL_INVALID_OPERATION, kInvalidShaderName); in ValidateObjectIdentifierAndName()
111 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
114 if (context->getProgramNoResolveLink({name}) == nullptr) in ValidateObjectIdentifierAndName()
116 context->validationError(GL_INVALID_OPERATION, kInvalidProgramName); in ValidateObjectIdentifierAndName()
122 if (!isGLES3 && !context->getExtensions().vertexArrayObjectOES) in ValidateObjectIdentifierAndName()
124 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
127 if (context->getVertexArray({name}) == nullptr) in ValidateObjectIdentifierAndName()
129 context->validationError(GL_INVALID_OPERATION, kInvalidVertexArrayName); in ValidateObjectIdentifierAndName()
135 if (!isGLES3 && !context->getExtensions().occlusionQueryBoolean) in ValidateObjectIdentifierAndName()
137 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
140 if (context->getQuery({name}) == nullptr) in ValidateObjectIdentifierAndName()
142 context->validationError(GL_INVALID_OPERATION, kInvalidQueryName); in ValidateObjectIdentifierAndName()
150 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
153 if (context->getTransformFeedback({name}) == nullptr) in ValidateObjectIdentifierAndName()
155 context->validationError(GL_INVALID_OPERATION, kInvalidTransformFeedbackName); in ValidateObjectIdentifierAndName()
163 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
166 if (context->getSampler({name}) == nullptr) in ValidateObjectIdentifierAndName()
168 context->validationError(GL_INVALID_OPERATION, kInvalidSamplerName); in ValidateObjectIdentifierAndName()
174 if (context->getTexture({name}) == nullptr) in ValidateObjectIdentifierAndName()
176 context->validationError(GL_INVALID_OPERATION, kInvalidTextureName); in ValidateObjectIdentifierAndName()
182 if (!context->isRenderbuffer({name})) in ValidateObjectIdentifierAndName()
184 context->validationError(GL_INVALID_OPERATION, kInvalidRenderbufferName); in ValidateObjectIdentifierAndName()
190 if (context->getFramebuffer({name}) == nullptr) in ValidateObjectIdentifierAndName()
192 context->validationError(GL_INVALID_OPERATION, kInvalidFramebufferName); in ValidateObjectIdentifierAndName()
198 if (!isGLES31 && !context->getExtensions().separateShaderObjects) in ValidateObjectIdentifierAndName()
200 context->validationError(GL_INVALID_ENUM, kInvalidType); in ValidateObjectIdentifierAndName()
203 if (context->getProgramPipeline({name}) == nullptr) in ValidateObjectIdentifierAndName()
205 context->validationError(GL_INVALID_OPERATION, kInvalidProgramPipelineName); in ValidateObjectIdentifierAndName()
211 context->validationError(GL_INVALID_ENUM, kInvalidIndentifier); in ValidateObjectIdentifierAndName()
217 bool ValidateGetTexImageANGLE(const Context *context, in ValidateGetTexImageANGLE() argument
224 if (!context->getExtensions().getImageANGLE) in ValidateGetTexImageANGLE()
226 context->validationError(GL_INVALID_OPERATION, kGetImageExtensionNotEnabled); in ValidateGetTexImageANGLE()
230 if (!ValidTexture2DDestinationTarget(context, target) && in ValidateGetTexImageANGLE()
231 !ValidTexture3DDestinationTarget(context, target)) in ValidateGetTexImageANGLE()
233 context->validationError(GL_INVALID_ENUM, kInvalidTextureTarget); in ValidateGetTexImageANGLE()
239 context->validationError(GL_INVALID_VALUE, kNegativeLevel); in ValidateGetTexImageANGLE()
244 if (!ValidMipLevel(context, textureType, level)) in ValidateGetTexImageANGLE()
246 context->validationError(GL_INVALID_VALUE, kInvalidMipLevel); in ValidateGetTexImageANGLE()
250 Texture *texture = context->getTextureByTarget(target); in ValidateGetTexImageANGLE()
252 if (!ValidateGetImageFormatAndType(context, texture, format, type)) in ValidateGetTexImageANGLE()
259 if (!ValidatePixelPack(context, format, type, 0, 0, width, height, -1, nullptr, pixels)) in ValidateGetTexImageANGLE()
267 bool ValidateGetRenderbufferImageANGLE(const Context *context, in ValidateGetRenderbufferImageANGLE() argument
273 if (!context->getExtensions().getImageANGLE) in ValidateGetRenderbufferImageANGLE()
275 context->validationError(GL_INVALID_OPERATION, kGetImageExtensionNotEnabled); in ValidateGetRenderbufferImageANGLE()
281 context->validationError(GL_INVALID_ENUM, kInvalidRenderbufferTarget); in ValidateGetRenderbufferImageANGLE()
285 Renderbuffer *renderbuffer = context->getState().getCurrentRenderbuffer(); in ValidateGetRenderbufferImageANGLE()
287 if (!ValidateGetImageFormatAndType(context, renderbuffer, format, type)) in ValidateGetRenderbufferImageANGLE()
294 if (!ValidatePixelPack(context, format, type, 0, 0, width, height, -1, nullptr, pixels)) in ValidateGetRenderbufferImageANGLE()
302 bool ValidateDrawElementsBaseVertexEXT(const Context *context, in ValidateDrawElementsBaseVertexEXT() argument
309 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawElementsBaseVertexEXT()
311 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawElementsBaseVertexEXT()
315 return ValidateDrawElementsCommon(context, mode, count, type, indices, 1); in ValidateDrawElementsBaseVertexEXT()
318 bool ValidateDrawElementsInstancedBaseVertexEXT(const Context *context, in ValidateDrawElementsInstancedBaseVertexEXT() argument
326 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawElementsInstancedBaseVertexEXT()
328 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawElementsInstancedBaseVertexEXT()
332 return ValidateDrawElementsInstancedBase(context, mode, count, type, indices, instancecount); in ValidateDrawElementsInstancedBaseVertexEXT()
335 bool ValidateDrawRangeElementsBaseVertexEXT(const Context *context, in ValidateDrawRangeElementsBaseVertexEXT() argument
344 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawRangeElementsBaseVertexEXT()
346 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawRangeElementsBaseVertexEXT()
352 context->validationError(GL_INVALID_VALUE, kInvalidElementRange); in ValidateDrawRangeElementsBaseVertexEXT()
356 if (!ValidateDrawElementsCommon(context, mode, count, type, indices, 0)) in ValidateDrawRangeElementsBaseVertexEXT()
369 ANGLE_VALIDATION_TRY(context->getState().getVertexArray()->getIndexRange(context, type, count, in ValidateDrawRangeElementsBaseVertexEXT()
375 context->validationError(GL_INVALID_OPERATION, kExceedsElementRange); in ValidateDrawRangeElementsBaseVertexEXT()
381 bool ValidateMultiDrawElementsBaseVertexEXT(const Context *context, in ValidateMultiDrawElementsBaseVertexEXT() argument
392 bool ValidateDrawElementsBaseVertexOES(const Context *context, in ValidateDrawElementsBaseVertexOES() argument
399 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawElementsBaseVertexOES()
401 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawElementsBaseVertexOES()
405 return ValidateDrawElementsCommon(context, mode, count, type, indices, 1); in ValidateDrawElementsBaseVertexOES()
408 bool ValidateDrawElementsInstancedBaseVertexOES(const Context *context, in ValidateDrawElementsInstancedBaseVertexOES() argument
416 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawElementsInstancedBaseVertexOES()
418 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawElementsInstancedBaseVertexOES()
422 return ValidateDrawElementsInstancedBase(context, mode, count, type, indices, instancecount); in ValidateDrawElementsInstancedBaseVertexOES()
425 bool ValidateDrawRangeElementsBaseVertexOES(const Context *context, in ValidateDrawRangeElementsBaseVertexOES() argument
434 if (!context->getExtensions().drawElementsBaseVertexAny()) in ValidateDrawRangeElementsBaseVertexOES()
436 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDrawRangeElementsBaseVertexOES()
442 context->validationError(GL_INVALID_VALUE, kInvalidElementRange); in ValidateDrawRangeElementsBaseVertexOES()
446 if (!ValidateDrawElementsCommon(context, mode, count, type, indices, 0)) in ValidateDrawRangeElementsBaseVertexOES()
459 ANGLE_VALIDATION_TRY(context->getState().getVertexArray()->getIndexRange(context, type, count, in ValidateDrawRangeElementsBaseVertexOES()
465 context->validationError(GL_INVALID_OPERATION, kExceedsElementRange); in ValidateDrawRangeElementsBaseVertexOES()
472 bool ValidateBlendBarrierKHR(const Context *context) in ValidateBlendBarrierKHR() argument
474 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendBarrierKHR()
478 bool ValidateBlendEquationSeparateiEXT(const Context *context, in ValidateBlendEquationSeparateiEXT() argument
483 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateBlendEquationSeparateiEXT()
485 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendEquationSeparateiEXT()
489 return ValidateBlendEquationSeparatei(context, buf, modeRGB, modeAlpha); in ValidateBlendEquationSeparateiEXT()
492 bool ValidateBlendEquationiEXT(const Context *context, GLuint buf, GLenum mode) in ValidateBlendEquationiEXT() argument
494 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateBlendEquationiEXT()
496 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendEquationiEXT()
500 return ValidateBlendEquationi(context, buf, mode); in ValidateBlendEquationiEXT()
503 bool ValidateBlendFuncSeparateiEXT(const Context *context, in ValidateBlendFuncSeparateiEXT() argument
510 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateBlendFuncSeparateiEXT()
512 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendFuncSeparateiEXT()
516 return ValidateBlendFuncSeparatei(context, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); in ValidateBlendFuncSeparateiEXT()
519 bool ValidateBlendFunciEXT(const Context *context, GLuint buf, GLenum src, GLenum dst) in ValidateBlendFunciEXT() argument
521 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateBlendFunciEXT()
523 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendFunciEXT()
527 return ValidateBlendFunci(context, buf, src, dst); in ValidateBlendFunciEXT()
530 bool ValidateColorMaskiEXT(const Context *context, in ValidateColorMaskiEXT() argument
537 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateColorMaskiEXT()
539 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateColorMaskiEXT()
543 return ValidateColorMaski(context, index, r, g, b, a); in ValidateColorMaskiEXT()
546 bool ValidateDisableiEXT(const Context *context, GLenum target, GLuint index) in ValidateDisableiEXT() argument
548 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateDisableiEXT()
550 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDisableiEXT()
554 return ValidateDisablei(context, target, index); in ValidateDisableiEXT()
557 bool ValidateEnableiEXT(const Context *context, GLenum target, GLuint index) in ValidateEnableiEXT() argument
559 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateEnableiEXT()
561 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateEnableiEXT()
565 return ValidateEnablei(context, target, index); in ValidateEnableiEXT()
568 bool ValidateIsEnablediEXT(const Context *context, GLenum target, GLuint index) in ValidateIsEnablediEXT() argument
570 if (!context->getExtensions().drawBuffersIndexedEXT) in ValidateIsEnablediEXT()
572 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsEnablediEXT()
576 return ValidateIsEnabledi(context, target, index); in ValidateIsEnablediEXT()
579 bool ValidateBlendEquationSeparateiOES(const Context *context, in ValidateBlendEquationSeparateiOES() argument
584 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateBlendEquationSeparateiOES()
586 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendEquationSeparateiOES()
590 return ValidateBlendEquationSeparatei(context, buf, modeRGB, modeAlpha); in ValidateBlendEquationSeparateiOES()
593 bool ValidateBlendEquationiOES(const Context *context, GLuint buf, GLenum mode) in ValidateBlendEquationiOES() argument
595 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateBlendEquationiOES()
597 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendEquationiOES()
601 return ValidateBlendEquationi(context, buf, mode); in ValidateBlendEquationiOES()
604 bool ValidateBlendFuncSeparateiOES(const Context *context, in ValidateBlendFuncSeparateiOES() argument
611 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateBlendFuncSeparateiOES()
613 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendFuncSeparateiOES()
617 return ValidateBlendFuncSeparatei(context, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); in ValidateBlendFuncSeparateiOES()
620 bool ValidateBlendFunciOES(const Context *context, GLuint buf, GLenum src, GLenum dst) in ValidateBlendFunciOES() argument
622 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateBlendFunciOES()
624 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBlendFunciOES()
628 return ValidateBlendFunci(context, buf, src, dst); in ValidateBlendFunciOES()
631 bool ValidateColorMaskiOES(const Context *context, in ValidateColorMaskiOES() argument
638 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateColorMaskiOES()
640 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateColorMaskiOES()
644 return ValidateColorMaski(context, index, r, g, b, a); in ValidateColorMaskiOES()
647 bool ValidateDisableiOES(const Context *context, GLenum target, GLuint index) in ValidateDisableiOES() argument
649 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateDisableiOES()
651 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDisableiOES()
655 return ValidateDisablei(context, target, index); in ValidateDisableiOES()
658 bool ValidateEnableiOES(const Context *context, GLenum target, GLuint index) in ValidateEnableiOES() argument
660 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateEnableiOES()
662 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateEnableiOES()
666 return ValidateEnablei(context, target, index); in ValidateEnableiOES()
669 bool ValidateIsEnablediOES(const Context *context, GLenum target, GLuint index) in ValidateIsEnablediOES() argument
671 if (!context->getExtensions().drawBuffersIndexedOES) in ValidateIsEnablediOES()
673 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsEnablediOES()
677 return ValidateIsEnabledi(context, target, index); in ValidateIsEnablediOES()
680 bool ValidateGetInteger64vEXT(const Context *context, GLenum pname, const GLint64 *data) in ValidateGetInteger64vEXT() argument
682 if (!context->getExtensions().disjointTimerQuery) in ValidateGetInteger64vEXT()
684 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetInteger64vEXT()
690 if (!ValidateStateQuery(context, pname, &nativeType, &numParams)) in ValidateGetInteger64vEXT()
698 bool ValidateCopyImageSubDataEXT(const Context *context, in ValidateCopyImageSubDataEXT() argument
715 if (!context->getExtensions().copyImageEXT) in ValidateCopyImageSubDataEXT()
717 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateCopyImageSubDataEXT()
721 return ValidateCopyImageSubDataBase(context, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, in ValidateCopyImageSubDataEXT()
726 bool ValidateCopyImageSubDataOES(const Context *context, in ValidateCopyImageSubDataOES() argument
743 if (!context->getExtensions().copyImageEXT) in ValidateCopyImageSubDataOES()
745 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateCopyImageSubDataOES()
749 return ValidateCopyImageSubDataBase(context, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, in ValidateCopyImageSubDataOES()
754 bool ValidateBufferStorageMemEXT(const Context *context, in ValidateBufferStorageMemEXT() argument
760 if (!context->getExtensions().memoryObject) in ValidateBufferStorageMemEXT()
762 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBufferStorageMemEXT()
770 bool ValidateCreateMemoryObjectsEXT(const Context *context, in ValidateCreateMemoryObjectsEXT() argument
774 if (!context->getExtensions().memoryObject) in ValidateCreateMemoryObjectsEXT()
776 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateCreateMemoryObjectsEXT()
780 return ValidateGenOrDelete(context, n); in ValidateCreateMemoryObjectsEXT()
783 bool ValidateDeleteMemoryObjectsEXT(const Context *context, in ValidateDeleteMemoryObjectsEXT() argument
787 if (!context->getExtensions().memoryObject) in ValidateDeleteMemoryObjectsEXT()
789 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDeleteMemoryObjectsEXT()
793 return ValidateGenOrDelete(context, n); in ValidateDeleteMemoryObjectsEXT()
796 bool ValidateGetMemoryObjectParameterivEXT(const Context *context, in ValidateGetMemoryObjectParameterivEXT() argument
801 if (!context->getExtensions().memoryObject) in ValidateGetMemoryObjectParameterivEXT()
803 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetMemoryObjectParameterivEXT()
807 const MemoryObject *memory = context->getMemoryObject(memoryObject); in ValidateGetMemoryObjectParameterivEXT()
810 context->validationError(GL_INVALID_VALUE, kInvalidMemoryObject); in ValidateGetMemoryObjectParameterivEXT()
813 if (!IsValidMemoryObjectParamater(context, pname)) in ValidateGetMemoryObjectParameterivEXT()
815 context->validationError(GL_INVALID_ENUM, kInvalidMemoryObjectParameter); in ValidateGetMemoryObjectParameterivEXT()
822 bool ValidateGetUnsignedBytevEXT(const Context *context, GLenum pname, const GLubyte *data) in ValidateGetUnsignedBytevEXT() argument
824 if (!context->getExtensions().memoryObject && !context->getExtensions().semaphore) in ValidateGetUnsignedBytevEXT()
826 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetUnsignedBytevEXT()
834 bool ValidateGetUnsignedBytei_vEXT(const Context *context, in ValidateGetUnsignedBytei_vEXT() argument
839 if (!context->getExtensions().memoryObject && !context->getExtensions().semaphore) in ValidateGetUnsignedBytei_vEXT()
841 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetUnsignedBytei_vEXT()
849 bool ValidateIsMemoryObjectEXT(const Context *context, MemoryObjectID memoryObject) in ValidateIsMemoryObjectEXT() argument
851 if (!context->getExtensions().memoryObject) in ValidateIsMemoryObjectEXT()
853 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsMemoryObjectEXT()
860 bool ValidateMemoryObjectParameterivEXT(const Context *context, in ValidateMemoryObjectParameterivEXT() argument
865 if (!context->getExtensions().memoryObject) in ValidateMemoryObjectParameterivEXT()
867 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateMemoryObjectParameterivEXT()
871 const MemoryObject *memory = context->getMemoryObject(memoryObject); in ValidateMemoryObjectParameterivEXT()
874 context->validationError(GL_INVALID_VALUE, kInvalidMemoryObject); in ValidateMemoryObjectParameterivEXT()
880 context->validationError(GL_INVALID_OPERATION, kImmutableMemoryObject); in ValidateMemoryObjectParameterivEXT()
884 if (!IsValidMemoryObjectParamater(context, pname)) in ValidateMemoryObjectParameterivEXT()
886 context->validationError(GL_INVALID_ENUM, kInvalidMemoryObjectParameter); in ValidateMemoryObjectParameterivEXT()
893 bool ValidateTexStorageMem2DEXT(const Context *context, in ValidateTexStorageMem2DEXT() argument
902 if (!context->getExtensions().memoryObject) in ValidateTexStorageMem2DEXT()
904 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateTexStorageMem2DEXT()
908 if (context->getClientMajorVersion() < 3) in ValidateTexStorageMem2DEXT()
910 return ValidateES2TexStorageParametersBase(context, target, levels, internalFormat, width, in ValidateTexStorageMem2DEXT()
914 ASSERT(context->getClientMajorVersion() >= 3); in ValidateTexStorageMem2DEXT()
915 return ValidateES3TexStorage2DParameters(context, target, levels, internalFormat, width, height, in ValidateTexStorageMem2DEXT()
919 bool ValidateTexStorageMem3DEXT(const Context *context, in ValidateTexStorageMem3DEXT() argument
929 if (!context->getExtensions().memoryObject) in ValidateTexStorageMem3DEXT()
931 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateTexStorageMem3DEXT()
939 bool ValidateImportMemoryFdEXT(const Context *context, in ValidateImportMemoryFdEXT() argument
945 if (!context->getExtensions().memoryObjectFd) in ValidateImportMemoryFdEXT()
947 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateImportMemoryFdEXT()
956 context->validationError(GL_INVALID_ENUM, kInvalidHandleType); in ValidateImportMemoryFdEXT()
963 bool ValidateImportMemoryZirconHandleANGLE(const Context *context, in ValidateImportMemoryZirconHandleANGLE() argument
969 if (!context->getExtensions().memoryObjectFuchsiaANGLE) in ValidateImportMemoryZirconHandleANGLE()
971 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateImportMemoryZirconHandleANGLE()
980 context->validationError(GL_INVALID_ENUM, kInvalidHandleType); in ValidateImportMemoryZirconHandleANGLE()
987 bool ValidateDeleteSemaphoresEXT(const Context *context, GLsizei n, const SemaphoreID *semaphores) in ValidateDeleteSemaphoresEXT() argument
989 if (!context->getExtensions().semaphore) in ValidateDeleteSemaphoresEXT()
991 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDeleteSemaphoresEXT()
995 return ValidateGenOrDelete(context, n); in ValidateDeleteSemaphoresEXT()
998 bool ValidateGenSemaphoresEXT(const Context *context, GLsizei n, const SemaphoreID *semaphores) in ValidateGenSemaphoresEXT() argument
1000 if (!context->getExtensions().semaphore) in ValidateGenSemaphoresEXT()
1002 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGenSemaphoresEXT()
1006 return ValidateGenOrDelete(context, n); in ValidateGenSemaphoresEXT()
1009 bool ValidateGetSemaphoreParameterui64vEXT(const Context *context, in ValidateGetSemaphoreParameterui64vEXT() argument
1014 if (!context->getExtensions().semaphore) in ValidateGetSemaphoreParameterui64vEXT()
1016 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetSemaphoreParameterui64vEXT()
1024 bool ValidateIsSemaphoreEXT(const Context *context, SemaphoreID semaphore) in ValidateIsSemaphoreEXT() argument
1026 if (!context->getExtensions().semaphore) in ValidateIsSemaphoreEXT()
1028 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsSemaphoreEXT()
1035 bool ValidateSemaphoreParameterui64vEXT(const Context *context, in ValidateSemaphoreParameterui64vEXT() argument
1040 if (!context->getExtensions().semaphore) in ValidateSemaphoreParameterui64vEXT()
1042 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateSemaphoreParameterui64vEXT()
1050 bool ValidateSignalSemaphoreEXT(const Context *context, in ValidateSignalSemaphoreEXT() argument
1058 if (!context->getExtensions().semaphore) in ValidateSignalSemaphoreEXT()
1060 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateSignalSemaphoreEXT()
1068 context->validationError(GL_INVALID_ENUM, kInvalidImageLayout); in ValidateSignalSemaphoreEXT()
1076 bool ValidateWaitSemaphoreEXT(const Context *context, in ValidateWaitSemaphoreEXT() argument
1084 if (!context->getExtensions().semaphore) in ValidateWaitSemaphoreEXT()
1086 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateWaitSemaphoreEXT()
1094 context->validationError(GL_INVALID_ENUM, kInvalidImageLayout); in ValidateWaitSemaphoreEXT()
1102 bool ValidateImportSemaphoreFdEXT(const Context *context, in ValidateImportSemaphoreFdEXT() argument
1107 if (!context->getExtensions().semaphoreFd) in ValidateImportSemaphoreFdEXT()
1109 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateImportSemaphoreFdEXT()
1118 context->validationError(GL_INVALID_ENUM, kInvalidHandleType); in ValidateImportSemaphoreFdEXT()
1125 bool ValidateGetSamplerParameterIivEXT(const Context *context, in ValidateGetSamplerParameterIivEXT() argument
1130 if (context->getClientMajorVersion() < 3) in ValidateGetSamplerParameterIivEXT()
1132 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateGetSamplerParameterIivEXT()
1135 return ValidateGetSamplerParameterBase(context, samplerPacked, pname, nullptr); in ValidateGetSamplerParameterIivEXT()
1138 bool ValidateGetSamplerParameterIuivEXT(const Context *context, in ValidateGetSamplerParameterIuivEXT() argument
1143 if (context->getClientMajorVersion() < 3) in ValidateGetSamplerParameterIuivEXT()
1145 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateGetSamplerParameterIuivEXT()
1148 return ValidateGetSamplerParameterBase(context, samplerPacked, pname, nullptr); in ValidateGetSamplerParameterIuivEXT()
1151 bool ValidateGetTexParameterIivEXT(const Context *context, in ValidateGetTexParameterIivEXT() argument
1156 if (context->getClientMajorVersion() < 3) in ValidateGetTexParameterIivEXT()
1158 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateGetTexParameterIivEXT()
1161 return ValidateGetTexParameterBase(context, targetPacked, pname, nullptr); in ValidateGetTexParameterIivEXT()
1164 bool ValidateGetTexParameterIuivEXT(const Context *context, in ValidateGetTexParameterIuivEXT() argument
1169 if (context->getClientMajorVersion() < 3) in ValidateGetTexParameterIuivEXT()
1171 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateGetTexParameterIuivEXT()
1174 return ValidateGetTexParameterBase(context, targetPacked, pname, nullptr); in ValidateGetTexParameterIuivEXT()
1177 bool ValidateSamplerParameterIivEXT(const Context *context, in ValidateSamplerParameterIivEXT() argument
1182 if (context->getClientMajorVersion() < 3) in ValidateSamplerParameterIivEXT()
1184 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateSamplerParameterIivEXT()
1187 return ValidateSamplerParameterBase(context, samplerPacked, pname, -1, true, param); in ValidateSamplerParameterIivEXT()
1190 bool ValidateSamplerParameterIuivEXT(const Context *context, in ValidateSamplerParameterIuivEXT() argument
1195 if (context->getClientMajorVersion() < 3) in ValidateSamplerParameterIuivEXT()
1197 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateSamplerParameterIuivEXT()
1200 return ValidateSamplerParameterBase(context, samplerPacked, pname, -1, true, param); in ValidateSamplerParameterIuivEXT()
1203 bool ValidateTexParameterIivEXT(const Context *context, in ValidateTexParameterIivEXT() argument
1208 if (context->getClientMajorVersion() < 3) in ValidateTexParameterIivEXT()
1210 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateTexParameterIivEXT()
1213 return ValidateTexParameterBase(context, targetPacked, pname, -1, true, params); in ValidateTexParameterIivEXT()
1216 bool ValidateTexParameterIuivEXT(const Context *context, in ValidateTexParameterIuivEXT() argument
1221 if (context->getClientMajorVersion() < 3) in ValidateTexParameterIuivEXT()
1223 context->validationError(GL_INVALID_OPERATION, kES3Required); in ValidateTexParameterIuivEXT()
1226 return ValidateTexParameterBase(context, targetPacked, pname, -1, true, params); in ValidateTexParameterIuivEXT()
1229 bool ValidateImportSemaphoreZirconHandleANGLE(const Context *context, in ValidateImportSemaphoreZirconHandleANGLE() argument
1234 if (!context->getExtensions().semaphoreFuchsiaANGLE) in ValidateImportSemaphoreZirconHandleANGLE()
1236 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateImportSemaphoreZirconHandleANGLE()
1245 context->validationError(GL_INVALID_ENUM, kInvalidHandleType); in ValidateImportSemaphoreZirconHandleANGLE()
1252 bool ValidateFramebufferFetchBarrierEXT(const Context *context) in ValidateFramebufferFetchBarrierEXT() argument
1257 bool ValidatePatchParameteriEXT(const Context *context, GLenum pname, GLint value) in ValidatePatchParameteriEXT() argument
1259 if (!context->getExtensions().tessellationShaderEXT) in ValidatePatchParameteriEXT()
1261 context->validationError(GL_INVALID_OPERATION, kTessellationShaderExtensionNotEnabled); in ValidatePatchParameteriEXT()
1267 context->validationError(GL_INVALID_ENUM, kInvalidPname); in ValidatePatchParameteriEXT()
1273 context->validationError(GL_INVALID_VALUE, kInvalidValueNonPositive); in ValidatePatchParameteriEXT()
1277 if (value > context->getCaps().maxPatchVertices) in ValidatePatchParameteriEXT()
1279 context->validationError(GL_INVALID_VALUE, kInvalidValueExceedsMaxPatchSize); in ValidatePatchParameteriEXT()
1286 bool ValidateTexStorageMemFlags2DANGLE(const Context *context, in ValidateTexStorageMemFlags2DANGLE() argument
1297 if (!context->getExtensions().memoryObjectFlagsANGLE) in ValidateTexStorageMemFlags2DANGLE()
1299 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateTexStorageMemFlags2DANGLE()
1303 if (!ValidateTexStorageMem2DEXT(context, targetPacked, levels, internalFormat, width, height, in ValidateTexStorageMemFlags2DANGLE()
1322 context->validationError(GL_INVALID_VALUE, kInvalidExternalCreateFlags); in ValidateTexStorageMemFlags2DANGLE()
1335 context->validationError(GL_INVALID_VALUE, kInvalidExternalUsageFlags); in ValidateTexStorageMemFlags2DANGLE()
1342 bool ValidateTexStorageMemFlags2DMultisampleANGLE(const Context *context, in ValidateTexStorageMemFlags2DMultisampleANGLE() argument
1358 bool ValidateTexStorageMemFlags3DANGLE(const Context *context, in ValidateTexStorageMemFlags3DANGLE() argument
1374 bool ValidateTexStorageMemFlags3DMultisampleANGLE(const Context *context, in ValidateTexStorageMemFlags3DMultisampleANGLE() argument
1392 bool ValidateBufferStorageEXT(const Context *context, in ValidateBufferStorageEXT() argument
1398 if (!context->isValidBufferBinding(targetPacked)) in ValidateBufferStorageEXT()
1400 context->validationError(GL_INVALID_ENUM, kInvalidBufferTypes); in ValidateBufferStorageEXT()
1406 context->validationError(GL_INVALID_VALUE, kNonPositiveSize); in ValidateBufferStorageEXT()
1415 context->validationError(GL_INVALID_VALUE, kInvalidBufferUsageFlags); in ValidateBufferStorageEXT()
1422 context->validationError(GL_INVALID_VALUE, kInvalidBufferUsageFlags); in ValidateBufferStorageEXT()
1428 context->validationError(GL_INVALID_VALUE, kInvalidBufferUsageFlags); in ValidateBufferStorageEXT()
1432 Buffer *buffer = context->getState().getTargetBuffer(targetPacked); in ValidateBufferStorageEXT()
1436 context->validationError(GL_INVALID_OPERATION, kBufferNotBound); in ValidateBufferStorageEXT()
1442 context->validationError(GL_INVALID_OPERATION, kBufferImmutable); in ValidateBufferStorageEXT()
1450 bool ValidateClipControlEXT(const Context *context, GLenum origin, GLenum depth) in ValidateClipControlEXT() argument
1454 context->validationError(GL_INVALID_ENUM, kInvalidOriginEnum); in ValidateClipControlEXT()
1460 context->validationError(GL_INVALID_ENUM, kInvalidDepthEnum); in ValidateClipControlEXT()
1468 bool ValidateBufferStorageExternalEXT(const Context *context, in ValidateBufferStorageExternalEXT() argument
1475 if (!ValidateBufferStorageEXT(context, targetPacked, size, nullptr, flags)) in ValidateBufferStorageExternalEXT()
1482 context->validationError(GL_INVALID_VALUE, kExternalBufferInvalidOffset); in ValidateBufferStorageExternalEXT()
1488 context->validationError(GL_INVALID_VALUE, kClientBufferInvalid); in ValidateBufferStorageExternalEXT()
1495 bool ValidateNamedBufferStorageExternalEXT(const Context *context, in ValidateNamedBufferStorageExternalEXT() argument
1507 bool ValidatePrimitiveBoundingBoxEXT(const Context *context, in ValidatePrimitiveBoundingBoxEXT() argument
1517 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidatePrimitiveBoundingBoxEXT()
1522 bool ValidateActiveShaderProgramEXT(const Context *context, in ValidateActiveShaderProgramEXT() argument
1526 if (!context->getExtensions().separateShaderObjects) in ValidateActiveShaderProgramEXT()
1528 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateActiveShaderProgramEXT()
1532 return ValidateActiveShaderProgramBase(context, pipelinePacked, programPacked); in ValidateActiveShaderProgramEXT()
1535 bool ValidateBindProgramPipelineEXT(const Context *context, ProgramPipelineID pipelinePacked) in ValidateBindProgramPipelineEXT() argument
1537 if (!context->getExtensions().separateShaderObjects) in ValidateBindProgramPipelineEXT()
1539 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateBindProgramPipelineEXT()
1543 return ValidateBindProgramPipelineBase(context, pipelinePacked); in ValidateBindProgramPipelineEXT()
1546 bool ValidateCreateShaderProgramvEXT(const Context *context, in ValidateCreateShaderProgramvEXT() argument
1551 if (!context->getExtensions().separateShaderObjects) in ValidateCreateShaderProgramvEXT()
1553 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateCreateShaderProgramvEXT()
1557 return ValidateCreateShaderProgramvBase(context, typePacked, count, strings); in ValidateCreateShaderProgramvEXT()
1560 bool ValidateDeleteProgramPipelinesEXT(const Context *context, in ValidateDeleteProgramPipelinesEXT() argument
1564 if (!context->getExtensions().separateShaderObjects) in ValidateDeleteProgramPipelinesEXT()
1566 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateDeleteProgramPipelinesEXT()
1570 return ValidateDeleteProgramPipelinesBase(context, n, pipelinesPacked); in ValidateDeleteProgramPipelinesEXT()
1573 bool ValidateGenProgramPipelinesEXT(const Context *context, in ValidateGenProgramPipelinesEXT() argument
1577 if (!context->getExtensions().separateShaderObjects) in ValidateGenProgramPipelinesEXT()
1579 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGenProgramPipelinesEXT()
1583 return ValidateGenProgramPipelinesBase(context, n, pipelinesPacked); in ValidateGenProgramPipelinesEXT()
1586 bool ValidateGetProgramPipelineInfoLogEXT(const Context *context, in ValidateGetProgramPipelineInfoLogEXT() argument
1592 if (!context->getExtensions().separateShaderObjects) in ValidateGetProgramPipelineInfoLogEXT()
1594 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetProgramPipelineInfoLogEXT()
1598 return ValidateGetProgramPipelineInfoLogBase(context, pipelinePacked, bufSize, length, infoLog); in ValidateGetProgramPipelineInfoLogEXT()
1601 bool ValidateGetProgramPipelineivEXT(const Context *context, in ValidateGetProgramPipelineivEXT() argument
1606 if (!context->getExtensions().separateShaderObjects) in ValidateGetProgramPipelineivEXT()
1608 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetProgramPipelineivEXT()
1612 return ValidateGetProgramPipelineivBase(context, pipelinePacked, pname, params); in ValidateGetProgramPipelineivEXT()
1615 bool ValidateIsProgramPipelineEXT(const Context *context, ProgramPipelineID pipelinePacked) in ValidateIsProgramPipelineEXT() argument
1617 if (!context->getExtensions().separateShaderObjects) in ValidateIsProgramPipelineEXT()
1619 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateIsProgramPipelineEXT()
1623 return ValidateIsProgramPipelineBase(context, pipelinePacked); in ValidateIsProgramPipelineEXT()
1626 bool ValidateProgramParameteriEXT(const Context *context, in ValidateProgramParameteriEXT() argument
1631 if (!context->getExtensions().separateShaderObjects) in ValidateProgramParameteriEXT()
1633 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramParameteriEXT()
1637 return ValidateProgramParameteriBase(context, programPacked, pname, value); in ValidateProgramParameteriEXT()
1640 bool ValidateProgramUniform1fEXT(const Context *context, in ValidateProgramUniform1fEXT() argument
1645 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1fEXT()
1647 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1fEXT()
1651 return ValidateProgramUniform1fBase(context, programPacked, locationPacked, v0); in ValidateProgramUniform1fEXT()
1654 bool ValidateProgramUniform1fvEXT(const Context *context, in ValidateProgramUniform1fvEXT() argument
1660 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1fvEXT()
1662 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1fvEXT()
1666 return ValidateProgramUniform1fvBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform1fvEXT()
1669 bool ValidateProgramUniform1iEXT(const Context *context, in ValidateProgramUniform1iEXT() argument
1674 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1iEXT()
1676 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1iEXT()
1680 return ValidateProgramUniform1iBase(context, programPacked, locationPacked, v0); in ValidateProgramUniform1iEXT()
1683 bool ValidateProgramUniform1ivEXT(const Context *context, in ValidateProgramUniform1ivEXT() argument
1689 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1ivEXT()
1691 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1ivEXT()
1695 return ValidateProgramUniform1ivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform1ivEXT()
1698 bool ValidateProgramUniform1uiEXT(const Context *context, in ValidateProgramUniform1uiEXT() argument
1703 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1uiEXT()
1705 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1uiEXT()
1709 return ValidateProgramUniform1uiBase(context, programPacked, locationPacked, v0); in ValidateProgramUniform1uiEXT()
1712 bool ValidateProgramUniform1uivEXT(const Context *context, in ValidateProgramUniform1uivEXT() argument
1718 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform1uivEXT()
1720 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform1uivEXT()
1724 return ValidateProgramUniform1uivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform1uivEXT()
1727 bool ValidateProgramUniform2fEXT(const Context *context, in ValidateProgramUniform2fEXT() argument
1733 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2fEXT()
1735 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2fEXT()
1739 return ValidateProgramUniform2fBase(context, programPacked, locationPacked, v0, v1); in ValidateProgramUniform2fEXT()
1742 bool ValidateProgramUniform2fvEXT(const Context *context, in ValidateProgramUniform2fvEXT() argument
1748 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2fvEXT()
1750 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2fvEXT()
1754 return ValidateProgramUniform2fvBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform2fvEXT()
1757 bool ValidateProgramUniform2iEXT(const Context *context, in ValidateProgramUniform2iEXT() argument
1763 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2iEXT()
1765 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2iEXT()
1769 return ValidateProgramUniform2iBase(context, programPacked, locationPacked, v0, v1); in ValidateProgramUniform2iEXT()
1772 bool ValidateProgramUniform2ivEXT(const Context *context, in ValidateProgramUniform2ivEXT() argument
1778 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2ivEXT()
1780 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2ivEXT()
1784 return ValidateProgramUniform2ivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform2ivEXT()
1787 bool ValidateProgramUniform2uiEXT(const Context *context, in ValidateProgramUniform2uiEXT() argument
1793 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2uiEXT()
1795 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2uiEXT()
1799 return ValidateProgramUniform2uiBase(context, programPacked, locationPacked, v0, v1); in ValidateProgramUniform2uiEXT()
1802 bool ValidateProgramUniform2uivEXT(const Context *context, in ValidateProgramUniform2uivEXT() argument
1808 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform2uivEXT()
1810 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform2uivEXT()
1814 return ValidateProgramUniform2uivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform2uivEXT()
1817 bool ValidateProgramUniform3fEXT(const Context *context, in ValidateProgramUniform3fEXT() argument
1824 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3fEXT()
1826 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3fEXT()
1830 return ValidateProgramUniform3fBase(context, programPacked, locationPacked, v0, v1, v2); in ValidateProgramUniform3fEXT()
1833 bool ValidateProgramUniform3fvEXT(const Context *context, in ValidateProgramUniform3fvEXT() argument
1839 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3fvEXT()
1841 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3fvEXT()
1845 return ValidateProgramUniform3fvBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform3fvEXT()
1848 bool ValidateProgramUniform3iEXT(const Context *context, in ValidateProgramUniform3iEXT() argument
1855 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3iEXT()
1857 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3iEXT()
1861 return ValidateProgramUniform3iBase(context, programPacked, locationPacked, v0, v1, v2); in ValidateProgramUniform3iEXT()
1864 bool ValidateProgramUniform3ivEXT(const Context *context, in ValidateProgramUniform3ivEXT() argument
1870 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3ivEXT()
1872 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3ivEXT()
1876 return ValidateProgramUniform3ivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform3ivEXT()
1879 bool ValidateProgramUniform3uiEXT(const Context *context, in ValidateProgramUniform3uiEXT() argument
1886 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3uiEXT()
1888 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3uiEXT()
1892 return ValidateProgramUniform3uiBase(context, programPacked, locationPacked, v0, v1, v2); in ValidateProgramUniform3uiEXT()
1895 bool ValidateProgramUniform3uivEXT(const Context *context, in ValidateProgramUniform3uivEXT() argument
1901 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform3uivEXT()
1903 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform3uivEXT()
1907 return ValidateProgramUniform3uivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform3uivEXT()
1910 bool ValidateProgramUniform4fEXT(const Context *context, in ValidateProgramUniform4fEXT() argument
1918 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform4fEXT()
1920 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform4fEXT()
1924 return ValidateProgramUniform4fBase(context, programPacked, locationPacked, v0, v1, v2, v3); in ValidateProgramUniform4fEXT()
1927 bool ValidateProgramUniform4fvEXT(const Context *context, in ValidateProgramUniform4fvEXT() argument
1933 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform4fvEXT()
1935 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform4fvEXT()
1939 return ValidateProgramUniform4fvBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform4fvEXT()
1942 bool ValidateProgramUniform4iEXT(const Context *context, in ValidateProgramUniform4iEXT() argument
1950 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform4iEXT()
1952 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform4iEXT()
1956 return ValidateProgramUniform4iBase(context, programPacked, locationPacked, v0, v1, v2, v3); in ValidateProgramUniform4iEXT()
1959 bool ValidateProgramUniform4ivEXT(const Context *context, in ValidateProgramUniform4ivEXT() argument
1965 return ValidateProgramUniform4ivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform4ivEXT()
1968 bool ValidateProgramUniform4uiEXT(const Context *context, in ValidateProgramUniform4uiEXT() argument
1976 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniform4uiEXT()
1978 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniform4uiEXT()
1982 return ValidateProgramUniform4uiBase(context, programPacked, locationPacked, v0, v1, v2, v3); in ValidateProgramUniform4uiEXT()
1985 bool ValidateProgramUniform4uivEXT(const Context *context, in ValidateProgramUniform4uivEXT() argument
1991 return ValidateProgramUniform4uivBase(context, programPacked, locationPacked, count, value); in ValidateProgramUniform4uivEXT()
1994 bool ValidateProgramUniformMatrix2fvEXT(const Context *context, in ValidateProgramUniformMatrix2fvEXT() argument
2001 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix2fvEXT()
2003 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix2fvEXT()
2007 return ValidateProgramUniformMatrix2fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix2fvEXT()
2011 bool ValidateProgramUniformMatrix2x3fvEXT(const Context *context, in ValidateProgramUniformMatrix2x3fvEXT() argument
2018 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix2x3fvEXT()
2020 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix2x3fvEXT()
2024 return ValidateProgramUniformMatrix2x3fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix2x3fvEXT()
2028 bool ValidateProgramUniformMatrix2x4fvEXT(const Context *context, in ValidateProgramUniformMatrix2x4fvEXT() argument
2035 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix2x4fvEXT()
2037 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix2x4fvEXT()
2041 return ValidateProgramUniformMatrix2x4fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix2x4fvEXT()
2045 bool ValidateProgramUniformMatrix3fvEXT(const Context *context, in ValidateProgramUniformMatrix3fvEXT() argument
2052 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix3fvEXT()
2054 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix3fvEXT()
2058 return ValidateProgramUniformMatrix3fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix3fvEXT()
2062 bool ValidateProgramUniformMatrix3x2fvEXT(const Context *context, in ValidateProgramUniformMatrix3x2fvEXT() argument
2069 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix3x2fvEXT()
2071 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix3x2fvEXT()
2075 return ValidateProgramUniformMatrix3x2fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix3x2fvEXT()
2079 bool ValidateProgramUniformMatrix3x4fvEXT(const Context *context, in ValidateProgramUniformMatrix3x4fvEXT() argument
2086 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix3x4fvEXT()
2088 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix3x4fvEXT()
2092 return ValidateProgramUniformMatrix3x4fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix3x4fvEXT()
2096 bool ValidateProgramUniformMatrix4fvEXT(const Context *context, in ValidateProgramUniformMatrix4fvEXT() argument
2103 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix4fvEXT()
2105 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix4fvEXT()
2109 return ValidateProgramUniformMatrix4fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix4fvEXT()
2113 bool ValidateProgramUniformMatrix4x2fvEXT(const Context *context, in ValidateProgramUniformMatrix4x2fvEXT() argument
2120 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix4x2fvEXT()
2122 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix4x2fvEXT()
2126 return ValidateProgramUniformMatrix4x2fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix4x2fvEXT()
2130 bool ValidateProgramUniformMatrix4x3fvEXT(const Context *context, in ValidateProgramUniformMatrix4x3fvEXT() argument
2137 if (!context->getExtensions().separateShaderObjects) in ValidateProgramUniformMatrix4x3fvEXT()
2139 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateProgramUniformMatrix4x3fvEXT()
2143 return ValidateProgramUniformMatrix4x3fvBase(context, programPacked, locationPacked, count, in ValidateProgramUniformMatrix4x3fvEXT()
2147 bool ValidateUseProgramStagesEXT(const Context *context, in ValidateUseProgramStagesEXT() argument
2152 if (!context->getExtensions().separateShaderObjects) in ValidateUseProgramStagesEXT()
2154 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateUseProgramStagesEXT()
2158 return ValidateUseProgramStagesBase(context, pipelinePacked, stages, programPacked); in ValidateUseProgramStagesEXT()
2161 bool ValidateValidateProgramPipelineEXT(const Context *context, ProgramPipelineID pipelinePacked) in ValidateValidateProgramPipelineEXT() argument
2163 if (!context->getExtensions().separateShaderObjects) in ValidateValidateProgramPipelineEXT()
2165 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateValidateProgramPipelineEXT()
2169 return ValidateValidateProgramPipelineBase(context, pipelinePacked); in ValidateValidateProgramPipelineEXT()
2173 bool ValidateGetObjectLabelEXT(const Context *context, in ValidateGetObjectLabelEXT() argument
2180 if (!context->getExtensions().debugLabel) in ValidateGetObjectLabelEXT()
2182 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateGetObjectLabelEXT()
2188 context->validationError(GL_INVALID_VALUE, kNegativeBufferSize); in ValidateGetObjectLabelEXT()
2192 return ValidateObjectIdentifierAndName(context, type, object); in ValidateGetObjectLabelEXT()
2195 bool ValidateLabelObjectEXT(const Context *context, in ValidateLabelObjectEXT() argument
2201 if (!context->getExtensions().debugLabel) in ValidateLabelObjectEXT()
2203 context->validationError(GL_INVALID_OPERATION, kExtensionNotEnabled); in ValidateLabelObjectEXT()
2209 context->validationError(GL_INVALID_VALUE, kNegativeLength); in ValidateLabelObjectEXT()
2213 return ValidateObjectIdentifierAndName(context, type, object); in ValidateLabelObjectEXT()