Lines Matching full:context
15 #include "libANGLE/Context.h"
32 class Context; variable
40 bool ValidTextureTarget(const Context *context, TextureType type);
41 bool ValidTexture2DTarget(const Context *context, TextureType type);
42 bool ValidTexture3DTarget(const Context *context, TextureType target);
43 bool ValidTextureExternalTarget(const Context *context, TextureType target);
44 bool ValidTextureExternalTarget(const Context *context, TextureTarget target);
45 bool ValidTexture2DDestinationTarget(const Context *context, TextureTarget target);
46 bool ValidTexture3DDestinationTarget(const Context *context, TextureTarget target);
47 bool ValidTexLevelDestinationTarget(const Context *context, TextureType type);
48 bool ValidFramebufferTarget(const Context *context, GLenum target);
49 bool ValidMipLevel(const Context *context, TextureType type, GLint level);
50 bool ValidImageSizeParameters(const Context *context,
57 bool ValidCompressedImageSize(const Context *context,
63 bool ValidCompressedSubImageSize(const Context *context,
74 bool ValidImageDataSize(const Context *context,
84 bool ValidQueryType(const Context *context, QueryType queryType);
86 bool ValidateWebGLVertexAttribPointer(const Context *context,
96 Program *GetValidProgram(const Context *context, ShaderProgramID id);
101 Shader *GetValidShader(const Context *context, ShaderProgramID id);
103 bool ValidateAttachmentTarget(const Context *context, GLenum attachment);
105 bool ValidateBlitFramebufferParameters(const Context *context,
117 bool ValidateBindFramebufferBase(const Context *context, GLenum target, FramebufferID framebuffer);
118 bool ValidateBindRenderbufferBase(const Context *context,
121 bool ValidateFramebufferRenderbufferBase(const Context *context,
126 bool ValidateFramebufferTextureBase(const Context *context,
131 bool ValidateGenerateMipmapBase(const Context *context, TextureType target);
133 bool ValidateRenderbufferStorageParametersBase(const Context *context,
140 bool ValidatePixelPack(const Context *context,
151 bool ValidateReadPixelsBase(const Context *context,
163 bool ValidateReadPixelsRobustANGLE(const Context *context,
175 bool ValidateReadnPixelsEXT(const Context *context,
184 bool ValidateReadnPixelsRobustANGLE(const Context *context,
197 bool ValidateGenQueriesEXT(const Context *context, GLsizei n, const QueryID *ids);
198 bool ValidateDeleteQueriesEXT(const Context *context, GLsizei n, const QueryID *ids);
199 bool ValidateIsQueryEXT(const Context *context, QueryID id);
200 bool ValidateBeginQueryBase(const Context *context, QueryType target, QueryID id);
201 bool ValidateBeginQueryEXT(const Context *context, QueryType target, QueryID id);
202 bool ValidateEndQueryBase(const Context *context, QueryType target);
203 bool ValidateEndQueryEXT(const Context *context, QueryType target);
204 bool ValidateQueryCounterEXT(const Context *context, QueryID id, QueryType target);
205 bool ValidateGetQueryivBase(const Context *context,
209 bool ValidateGetQueryivEXT(const Context *context,
213 bool ValidateGetQueryivRobustANGLE(const Context *context,
219 bool ValidateGetQueryObjectValueBase(const Context *context,
223 bool ValidateGetQueryObjectivEXT(const Context *context,
227 bool ValidateGetQueryObjectivRobustANGLE(const Context *context,
233 bool ValidateGetQueryObjectuivEXT(const Context *context,
237 bool ValidateGetQueryObjectuivRobustANGLE(const Context *context,
243 bool ValidateGetQueryObjecti64vEXT(const Context *context,
247 bool ValidateGetQueryObjecti64vRobustANGLE(const Context *context,
253 bool ValidateGetQueryObjectui64vEXT(const Context *context,
257 bool ValidateGetQueryObjectui64vRobustANGLE(const Context *context,
264 bool ValidateUniformCommonBase(const Context *context,
269 bool ValidateUniform1ivValue(const Context *context,
274 ANGLE_INLINE bool ValidateUniformValue(const Context *context, GLenum valueType, GLenum uniformType) in ValidateUniformValue() argument
280 context->validationError(GL_INVALID_OPERATION, err::kUniformSizeMismatch); in ValidateUniformValue()
286 bool ValidateUniformMatrixValue(const Context *context, GLenum valueType, GLenum uniformType);
287 bool ValidateUniform(const Context *context,
291 bool ValidateUniformMatrix(const Context *context,
296 bool ValidateGetBooleanvRobustANGLE(const Context *context,
301 bool ValidateGetFloatvRobustANGLE(const Context *context,
306 bool ValidateStateQuery(const Context *context,
310 bool ValidateGetIntegervRobustANGLE(const Context *context,
315 bool ValidateGetInteger64vRobustANGLE(const Context *context,
320 bool ValidateRobustStateQuery(const Context *context,
326 bool ValidateCopyImageSubDataBase(const Context *context,
343 bool ValidateCopyTexImageParametersBase(const Context *context,
358 void RecordDrawModeError(const Context *context, PrimitiveMode mode);
359 const char *ValidateDrawElementsStates(const Context *context);
361 ANGLE_INLINE bool ValidateDrawBase(const Context *context, PrimitiveMode mode) in ValidateDrawBase() argument
363 intptr_t drawStatesError = context->getStateCache().getBasicDrawStatesError(context); in ValidateDrawBase()
373 context->validationError(errorCode, errorMessage); in ValidateDrawBase()
377 if (!context->getStateCache().isValidDrawMode(mode)) in ValidateDrawBase()
379 RecordDrawModeError(context, mode); in ValidateDrawBase()
386 bool ValidateDrawArraysInstancedBase(const Context *context,
391 bool ValidateDrawArraysInstancedANGLE(const Context *context,
396 bool ValidateDrawArraysInstancedEXT(const Context *context,
402 bool ValidateDrawElementsInstancedBase(const Context *context,
408 bool ValidateDrawElementsInstancedANGLE(const Context *context,
414 bool ValidateDrawElementsInstancedEXT(const Context *context,
421 bool ValidateDrawInstancedANGLE(const Context *context);
423 bool ValidateGetUniformBase(const Context *context,
426 bool ValidateGetnUniformfvEXT(const Context *context,
431 bool ValidateGetnUniformfvRobustANGLE(const Context *context,
437 bool ValidateGetnUniformivEXT(const Context *context,
442 bool ValidateGetnUniformivRobustANGLE(const Context *context,
448 bool ValidateGetnUniformuivRobustANGLE(const Context *context,
454 bool ValidateGetUniformfvRobustANGLE(const Context *context,
460 bool ValidateGetUniformivRobustANGLE(const Context *context,
466 bool ValidateGetUniformuivRobustANGLE(const Context *context,
473 bool ValidateDiscardFramebufferBase(const Context *context,
479 bool ValidateInsertEventMarkerEXT(const Context *context, GLsizei length, const char *marker);
480 bool ValidatePushGroupMarkerEXT(const Context *context, GLsizei length, const char *marker);
482 bool ValidateEGLImageTargetTexture2DOES(const Context *context,
485 bool ValidateEGLImageTargetRenderbufferStorageOES(const Context *context,
489 bool ValidateBindVertexArrayBase(const Context *context, VertexArrayID array);
491 bool ValidateProgramBinaryBase(const Context *context,
496 bool ValidateGetProgramBinaryBase(const Context *context,
503 bool ValidateDrawBuffersBase(const Context *context, GLsizei n, const GLenum *bufs);
505 bool ValidateGetBufferPointervBase(const Context *context,
510 bool ValidateUnmapBufferBase(const Context *context, BufferBinding target);
511 bool ValidateMapBufferRangeBase(const Context *context,
516 bool ValidateFlushMappedBufferRangeBase(const Context *context,
521 bool ValidateGenOrDelete(const Context *context, GLint n);
523 bool ValidateRobustEntryPoint(const Context *context, GLsizei bufSize);
524 bool ValidateRobustBufferSize(const Context *context, GLsizei bufSize, GLsizei numParams);
526 bool ValidateGetFramebufferAttachmentParameterivBase(const Context *context,
532 bool ValidateGetBufferParameterBase(const Context *context,
538 bool ValidateGetProgramivBase(const Context *context,
543 bool ValidateGetRenderbufferParameterivBase(const Context *context,
548 bool ValidateGetShaderivBase(const Context *context,
553 bool ValidateGetTexParameterBase(const Context *context,
559 bool ValidateTexParameterBase(const Context *context,
566 bool ValidateGetVertexAttribBase(const Context *context,
573 ANGLE_INLINE bool ValidateVertexFormat(const Context *context, in ValidateVertexFormat() argument
578 const Caps &caps = context->getCaps(); in ValidateVertexFormat()
581 context->validationError(GL_INVALID_VALUE, err::kIndexExceedsMaxVertexAttribute); in ValidateVertexFormat()
588 context->validationError(GL_INVALID_ENUM, err::kInvalidType); in ValidateVertexFormat()
593 context->validationError(GL_INVALID_VALUE, err::kInvalidVertexAttrSize); in ValidateVertexFormat()
600 context->validationError(GL_INVALID_OPERATION, in ValidateVertexFormat()
608 context->validationError(GL_INVALID_OPERATION, in ValidateVertexFormat()
619 ANGLE_INLINE bool ValidateFloatVertexFormat(const Context *context, in ValidateFloatVertexFormat() argument
624 return ValidateVertexFormat(context, index, size, in ValidateFloatVertexFormat()
625 context->getStateCache().getVertexAttribTypeValidation(type)); in ValidateFloatVertexFormat()
628 ANGLE_INLINE bool ValidateIntegerVertexFormat(const Context *context, in ValidateIntegerVertexFormat() argument
634 context, index, size, context->getStateCache().getIntegerVertexAttribTypeValidation(type)); in ValidateIntegerVertexFormat()
637 bool ValidateWebGLFramebufferAttachmentClearType(const Context *context,
642 bool ValidateRobustCompressedTexImageBase(const Context *context,
646 bool ValidateVertexAttribIndex(const Context *context, GLuint index);
648 bool ValidateGetActiveUniformBlockivBase(const Context *context,
654 bool ValidateGetSamplerParameterBase(const Context *context,
660 bool ValidateSamplerParameterBase(const Context *context,
667 bool ValidateGetInternalFormativBase(const Context *context,
674 bool ValidateFramebufferNotMultisampled(const Context *context,
678 bool ValidateMultitextureUnit(const Context *context, GLenum texture);
680 bool ValidateTransformFeedbackPrimitiveMode(const Context *context,
685 bool ValidateTexStorageMultisample(const Context *context,
692 bool ValidateTexStorage2DMultisampleBase(const Context *context,
699 bool ValidateGetTexLevelParameterBase(const Context *context,
705 bool ValidateMapBufferBase(const Context *context, BufferBinding target);
706 bool ValidateIndexedStateQuery(const Context *context, GLenum pname, GLuint index, GLsizei *length);
707 bool ValidateES3TexImage2DParameters(const Context *context,
724 bool ValidateES3CopyTexImage2DParameters(const Context *context,
737 bool ValidateES3TexStorage2DParameters(const Context *context,
744 bool ValidateES3TexStorage3DParameters(const Context *context,
752 bool ValidateGetMultisamplefvBase(const Context *context,
756 bool ValidateSampleMaskiBase(const Context *context, GLuint maskNumber, GLbitfield mask);
763 ANGLE_INLINE bool ValidateFramebufferComplete(const Context *context, in ValidateFramebufferComplete() argument
766 const FramebufferStatus &framebufferStatus = framebuffer->checkStatus(context); in ValidateFramebufferComplete()
770 context->validationError(ErrorCode, framebufferStatus.reason); in ValidateFramebufferComplete()
781 const char *ValidateDrawStates(const Context *context);
783 void RecordDrawAttribsError(const Context *context);
785 ANGLE_INLINE bool ValidateDrawAttribs(const Context *context, int64_t maxVertex) in ValidateDrawAttribs() argument
787 if (maxVertex > context->getStateCache().getNonInstancedVertexElementLimit()) in ValidateDrawAttribs()
789 RecordDrawAttribsError(context); in ValidateDrawAttribs()
796 ANGLE_INLINE bool ValidateDrawArraysAttribs(const Context *context, GLint first, GLsizei count) in ValidateDrawArraysAttribs() argument
798 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawArraysAttribs()
812 context->validationError(GL_INVALID_OPERATION, err::kIntegerOverflow); in ValidateDrawArraysAttribs()
816 return ValidateDrawAttribs(context, maxVertex); in ValidateDrawArraysAttribs()
819 ANGLE_INLINE bool ValidateDrawInstancedAttribs(const Context *context, GLint primcount) in ValidateDrawInstancedAttribs() argument
821 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawInstancedAttribs()
826 if ((primcount - 1) > context->getStateCache().getInstancedVertexElementLimit()) in ValidateDrawInstancedAttribs()
828 RecordDrawAttribsError(context); in ValidateDrawInstancedAttribs()
835 ANGLE_INLINE bool ValidateDrawArraysCommon(const Context *context, in ValidateDrawArraysCommon() argument
843 context->validationError(GL_INVALID_VALUE, err::kNegativeStart); in ValidateDrawArraysCommon()
851 context->validationError(GL_INVALID_VALUE, err::kNegativeCount); in ValidateDrawArraysCommon()
856 return ValidateDrawBase(context, mode); in ValidateDrawArraysCommon()
859 if (!ValidateDrawBase(context, mode)) in ValidateDrawArraysCommon()
864 if (context->getStateCache().isTransformFeedbackActiveUnpaused() && in ValidateDrawArraysCommon()
865 !context->supportsGeometryOrTesselation()) in ValidateDrawArraysCommon()
867 const State &state = context->getState(); in ValidateDrawArraysCommon()
871 context->validationError(GL_INVALID_OPERATION, err::kTransformFeedbackBufferTooSmall); in ValidateDrawArraysCommon()
876 return ValidateDrawArraysAttribs(context, first, count); in ValidateDrawArraysCommon()
879 ANGLE_INLINE bool ValidateDrawElementsBase(const Context *context, in ValidateDrawElementsBase() argument
883 if (!context->getStateCache().isValidDrawElementsType(type)) in ValidateDrawElementsBase()
887 context->validationError(GL_INVALID_ENUM, err::kTypeNotUnsignedShortByte); in ValidateDrawElementsBase()
892 context->validationError(GL_INVALID_ENUM, err::kEnumNotSupported); in ValidateDrawElementsBase()
896 intptr_t drawElementsError = context->getStateCache().getBasicDrawElementsError(context); in ValidateDrawElementsBase()
901 context->validationError(GL_INVALID_OPERATION, errorMessage); in ValidateDrawElementsBase()
909 ANGLE_INLINE bool ValidateDrawElementsCommon(const Context *context, in ValidateDrawElementsCommon() argument
916 if (!ValidateDrawElementsBase(context, mode, type)) in ValidateDrawElementsCommon()
923 if (context->getExtensions().webglCompatibility) in ValidateDrawElementsCommon()
932 context->validationError(GL_INVALID_OPERATION, err::kOffsetMustBeMultipleOfType); in ValidateDrawElementsCommon()
941 context->validationError(GL_INVALID_VALUE, err::kNegativeOffset); in ValidateDrawElementsCommon()
950 context->validationError(GL_INVALID_VALUE, err::kNegativeCount); in ValidateDrawElementsCommon()
955 return ValidateDrawBase(context, mode); in ValidateDrawElementsCommon()
958 if (!ValidateDrawBase(context, mode)) in ValidateDrawElementsCommon()
963 const State &state = context->getState(); in ValidateDrawElementsCommon()
973 context->validationError(GL_INVALID_OPERATION, err::kElementArrayNoBufferOrPointer); in ValidateDrawElementsCommon()
998 context->validationError(GL_INVALID_OPERATION, err::kIntegerOverflow); in ValidateDrawElementsCommon()
1006 context->validationError(GL_INVALID_OPERATION, err::kInsufficientBufferSize); in ValidateDrawElementsCommon()
1011 if (context->isBufferAccessValidationEnabled() && primcount > 0) in ValidateDrawElementsCommon()
1015 ANGLE_VALIDATION_TRY(vao->getIndexRange(context, type, count, indices, &indexRange)); in ValidateDrawElementsCommon()
1020 if (static_cast<GLint64>(indexRange.end) >= context->getCaps().maxElementIndex) in ValidateDrawElementsCommon()
1022 context->validationError(GL_INVALID_OPERATION, err::kExceedsMaxElement); in ValidateDrawElementsCommon()
1026 if (!ValidateDrawAttribs(context, static_cast<GLint>(indexRange.end))) in ValidateDrawElementsCommon()