• Home
  • Raw
  • Download

Lines Matching full:context

15 #include "libANGLE/Context.h"
32 class Context; variable
40 context->getMutableErrorSetForValidation()->validationError(entryPoint, errorCode, message)
42 context->getMutableErrorSetForValidation()->validationErrorF(entryPoint, errorCode, __VA_ARGS__)
45 bool ValidTextureTarget(const Context *context, TextureType type);
46 bool ValidTexture2DTarget(const Context *context, TextureType type);
47 bool ValidTexture3DTarget(const Context *context, TextureType target);
48 bool ValidTextureExternalTarget(const Context *context, TextureType target);
49 bool ValidTextureExternalTarget(const Context *context, TextureTarget target);
50 bool ValidTexture2DDestinationTarget(const Context *context, TextureTarget target);
51 bool ValidTexture3DDestinationTarget(const Context *context, TextureTarget target);
52 bool ValidTexLevelDestinationTarget(const Context *context, TextureType type);
53 bool ValidFramebufferTarget(const Context *context, GLenum target);
54 bool ValidMipLevel(const Context *context, TextureType type, GLint level);
55 bool ValidImageSizeParameters(const Context *context,
63 bool ValidCompressedImageSize(const Context *context,
69 bool ValidCompressedSubImageSize(const Context *context,
80 bool ValidImageDataSize(const Context *context,
91 bool ValidQueryType(const Context *context, QueryType queryType);
93 bool ValidateWebGLVertexAttribPointer(const Context *context,
104 Program *GetValidProgram(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id);
109 Shader *GetValidShader(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id);
111 bool ValidateAttachmentTarget(const Context *context,
115 bool ValidateBlitFramebufferParameters(const Context *context,
128 bool ValidateBindFramebufferBase(const Context *context,
132 bool ValidateBindRenderbufferBase(const Context *context,
136 bool ValidateFramebufferParameteriBase(const Context *context,
141 bool ValidateFramebufferRenderbufferBase(const Context *context,
147 bool ValidateFramebufferTextureBase(const Context *context,
153 bool ValidateGenerateMipmapBase(const Context *context,
157 bool ValidateRenderbufferStorageParametersBase(const Context *context,
165 bool ValidatePixelPack(const Context *context,
177 bool ValidateReadPixelsBase(const Context *context,
190 bool ValidateReadPixelsRobustANGLE(const Context *context,
203 bool ValidateReadnPixelsEXT(const Context *context,
213 bool ValidateReadnPixelsRobustANGLE(const Context *context,
227 bool ValidateGenQueriesEXT(const Context *context,
231 bool ValidateDeleteQueriesEXT(const Context *context,
235 bool ValidateIsQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryID id);
236 bool ValidateBeginQueryBase(const Context *context,
240 bool ValidateBeginQueryEXT(const Context *context,
244 bool ValidateEndQueryBase(const Context *context, angle::EntryPoint entryPoint, QueryType target);
245 bool ValidateEndQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryType target);
246 bool ValidateQueryCounterEXT(const Context *context,
250 bool ValidateGetQueryivBase(const Context *context,
255 bool ValidateGetQueryivEXT(const Context *context,
260 bool ValidateGetQueryivRobustANGLE(const Context *context,
267 bool ValidateGetQueryObjectValueBase(const Context *context,
272 bool ValidateGetQueryObjectivEXT(const Context *context,
277 bool ValidateGetQueryObjectivRobustANGLE(const Context *context,
284 bool ValidateGetQueryObjectuivEXT(const Context *context,
289 bool ValidateGetQueryObjectuivRobustANGLE(const Context *context,
296 bool ValidateGetQueryObjecti64vEXT(const Context *context,
301 bool ValidateGetQueryObjecti64vRobustANGLE(const Context *context,
308 bool ValidateGetQueryObjectui64vEXT(const Context *context,
313 bool ValidateGetQueryObjectui64vRobustANGLE(const Context *context,
321 bool ValidateUniformCommonBase(const Context *context,
327 bool ValidateUniform1ivValue(const Context *context,
333 ANGLE_INLINE bool ValidateUniformValue(const Context *context, in ValidateUniformValue() argument
348 bool ValidateUniformMatrixValue(const Context *context,
352 bool ValidateUniform(const Context *context,
357 bool ValidateUniformMatrix(const Context *context,
363 bool ValidateGetBooleanvRobustANGLE(const Context *context,
369 bool ValidateGetFloatvRobustANGLE(const Context *context,
375 bool ValidateStateQuery(const Context *context,
380 bool ValidateGetIntegervRobustANGLE(const Context *context,
386 bool ValidateGetInteger64vRobustANGLE(const Context *context,
392 bool ValidateRobustStateQuery(const Context *context,
399 bool ValidateCopyImageSubDataBase(const Context *context,
417 bool ValidateCopyTexImageParametersBase(const Context *context,
433 void RecordDrawModeError(const Context *context, angle::EntryPoint entryPoint, PrimitiveMode mode);
434 const char *ValidateDrawElementsStates(const Context *context);
436 ANGLE_INLINE bool ValidateDrawBase(const Context *context, in ValidateDrawBase() argument
440 intptr_t drawStatesError = context->getStateCache().getBasicDrawStatesErrorString( in ValidateDrawBase()
441 context, &context->getPrivateStateCache()); in ValidateDrawBase()
445 GLenum errorCode = context->getStateCache().getBasicDrawElementsErrorCode(); in ValidateDrawBase()
450 if (!context->getStateCache().isValidDrawMode(mode)) in ValidateDrawBase()
452 RecordDrawModeError(context, entryPoint, mode); in ValidateDrawBase()
459 bool ValidateDrawArraysInstancedBase(const Context *context,
466 bool ValidateDrawArraysInstancedANGLE(const Context *context,
472 bool ValidateDrawArraysInstancedEXT(const Context *context,
479 bool ValidateDrawElementsInstancedBase(const Context *context,
487 bool ValidateDrawElementsInstancedANGLE(const Context *context,
494 bool ValidateDrawElementsInstancedEXT(const Context *context,
502 bool ValidateDrawInstancedANGLE(const Context *context, angle::EntryPoint entryPoint);
504 bool ValidateGetUniformBase(const Context *context,
508 bool ValidateSizedGetUniform(const Context *context,
514 bool ValidateGetnUniformfvEXT(const Context *context,
520 bool ValidateGetnUniformfvRobustANGLE(const Context *context,
527 bool ValidateGetnUniformivEXT(const Context *context,
533 bool ValidateGetnUniformivRobustANGLE(const Context *context,
540 bool ValidateGetnUniformuivRobustANGLE(const Context *context,
547 bool ValidateGetUniformfvRobustANGLE(const Context *context,
554 bool ValidateGetUniformivRobustANGLE(const Context *context,
561 bool ValidateGetUniformuivRobustANGLE(const Context *context,
569 bool ValidateDiscardFramebufferBase(const Context *context,
576 bool ValidateInsertEventMarkerEXT(const Context *context,
580 bool ValidatePushGroupMarkerEXT(const Context *context,
584 bool ValidateEGLImageObject(const Context *context,
588 bool ValidateEGLImageTargetTexture2DOES(const Context *context,
592 bool ValidateEGLImageTargetRenderbufferStorageOES(const Context *context,
597 bool ValidateProgramBinaryBase(const Context *context,
603 bool ValidateGetProgramBinaryBase(const Context *context,
611 bool ValidateDrawBuffersBase(const Context *context,
616 bool ValidateGetBufferPointervBase(const Context *context,
622 bool ValidateUnmapBufferBase(const Context *context,
625 bool ValidateMapBufferRangeBase(const Context *context,
631 bool ValidateFlushMappedBufferRangeBase(const Context *context,
637 bool ValidateGenOrDelete(const Context *context, angle::EntryPoint entryPoint, GLint n);
639 bool ValidateRobustEntryPoint(const Context *context,
642 bool ValidateRobustBufferSize(const Context *context,
647 bool ValidateGetFramebufferAttachmentParameterivBase(const Context *context,
654 bool ValidateGetFramebufferParameterivBase(const Context *context,
660 bool ValidateGetBufferParameterBase(const Context *context,
667 bool ValidateGetProgramivBase(const Context *context,
673 bool ValidateGetRenderbufferParameterivBase(const Context *context,
679 bool ValidateGetShaderivBase(const Context *context,
685 bool ValidateGetTexParameterBase(const Context *context,
692 bool ValidateTexParameterBase(const Context *context,
700 bool ValidateGetVertexAttribBase(const Context *context,
708 ANGLE_INLINE bool ValidateVertexFormat(const Context *context, in ValidateVertexFormat() argument
714 const Caps &caps = context->getCaps(); in ValidateVertexFormat()
753 ANGLE_INLINE bool ValidateFloatVertexFormat(const Context *context, in ValidateFloatVertexFormat() argument
759 return ValidateVertexFormat(context, entryPoint, index, size, in ValidateFloatVertexFormat()
760 context->getStateCache().getVertexAttribTypeValidation(type)); in ValidateFloatVertexFormat()
763 ANGLE_INLINE bool ValidateIntegerVertexFormat(const Context *context, in ValidateIntegerVertexFormat() argument
770 context, entryPoint, index, size, in ValidateIntegerVertexFormat()
771 context->getStateCache().getIntegerVertexAttribTypeValidation(type)); in ValidateIntegerVertexFormat()
793 bool ValidateRobustCompressedTexImageBase(const Context *context,
803 bool ValidateGetActiveUniformBlockivBase(const Context *context,
810 bool ValidateGetSamplerParameterBase(const Context *context,
817 bool ValidateSamplerParameterBase(const Context *context,
825 bool ValidateGetInternalFormativBase(const Context *context,
833 bool ValidateFramebufferNotMultisampled(const Context *context,
843 bool ValidateTransformFeedbackPrimitiveMode(const Context *context,
849 bool ValidateTexStorageMultisample(const Context *context,
857 bool ValidateTexStorage2DMultisampleBase(const Context *context,
865 bool ValidateGetTexLevelParameterBase(const Context *context,
872 bool ValidateMapBufferBase(const Context *context,
875 bool ValidateIndexedStateQuery(const Context *context,
880 bool ValidateES3TexImage2DParameters(const Context *context,
898 bool ValidateES3CopyTexImage2DParameters(const Context *context,
912 bool ValidateES3TexStorageParametersBase(const Context *context,
920 bool ValidateES3TexStorage2DParameters(const Context *context,
928 bool ValidateES3TexStorage3DParameters(const Context *context,
937 bool ValidateGetMultisamplefvBase(const Context *context,
948 bool ValidateProgramExecutableXFBBuffersPresent(const Context *context,
956 ANGLE_INLINE bool ValidateFramebufferComplete(const Context *context, in ValidateFramebufferComplete() argument
960 const FramebufferStatus &framebufferStatus = framebuffer->checkStatus(context); in ValidateFramebufferComplete()
975 const char *ValidateDrawStates(const Context *context, GLenum *outErrorCode);
976 const char *ValidateProgramPipeline(const Context *context);
978 void RecordDrawAttribsError(const Context *context, angle::EntryPoint entryPoint);
980 ANGLE_INLINE bool ValidateDrawAttribs(const Context *context, in ValidateDrawAttribs() argument
987 if (maxVertex >= context->getStateCache().getNonInstancedVertexElementLimit() || in ValidateDrawAttribs()
988 context->getStateCache().getInstancedVertexElementLimit() < 1) in ValidateDrawAttribs()
990 RecordDrawAttribsError(context, entryPoint); in ValidateDrawAttribs()
997 ANGLE_INLINE bool ValidateDrawArraysAttribs(const Context *context, in ValidateDrawArraysAttribs() argument
1002 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawArraysAttribs()
1020 return ValidateDrawAttribs(context, entryPoint, maxVertex); in ValidateDrawArraysAttribs()
1023 ANGLE_INLINE bool ValidateDrawInstancedAttribs(const Context *context, in ValidateDrawInstancedAttribs() argument
1028 if (!context->isBufferAccessValidationEnabled()) in ValidateDrawInstancedAttribs()
1036 const GLint64 limit = context->getStateCache().getInstancedVertexElementLimit(); in ValidateDrawInstancedAttribs()
1039 RecordDrawAttribsError(context, entryPoint); in ValidateDrawInstancedAttribs()
1046 ANGLE_INLINE bool ValidateDrawArraysCommon(const Context *context, in ValidateDrawArraysCommon() argument
1068 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawArraysCommon()
1079 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawArraysCommon()
1082 if (!ValidateDrawBase(context, entryPoint, mode)) in ValidateDrawArraysCommon()
1087 if (context->getStateCache().isTransformFeedbackActiveUnpaused() && in ValidateDrawArraysCommon()
1088 !context->supportsGeometryOrTesselation()) in ValidateDrawArraysCommon()
1090 const State &state = context->getState(); in ValidateDrawArraysCommon()
1099 return ValidateDrawArraysAttribs(context, entryPoint, first, count); in ValidateDrawArraysCommon()
1102 ANGLE_INLINE bool ValidateDrawElementsBase(const Context *context, in ValidateDrawElementsBase() argument
1107 if (!context->getStateCache().isValidDrawElementsType(type)) in ValidateDrawElementsBase()
1120 intptr_t drawElementsError = context->getStateCache().getBasicDrawElementsError(context); in ValidateDrawElementsBase()
1133 ANGLE_INLINE bool ValidateDrawElementsCommon(const Context *context, in ValidateDrawElementsCommon() argument
1141 if (!ValidateDrawElementsBase(context, entryPoint, mode, type)) in ValidateDrawElementsCommon()
1148 if (context->isWebGL()) in ValidateDrawElementsCommon()
1180 return ValidateDrawBase(context, entryPoint, mode); in ValidateDrawElementsCommon()
1183 if (!ValidateDrawBase(context, entryPoint, mode)) in ValidateDrawElementsCommon()
1188 const State &state = context->getState(); in ValidateDrawElementsCommon()
1236 if (context->isBufferAccessValidationEnabled() && primcount > 0) in ValidateDrawElementsCommon()
1242 ANGLE_VALIDATION_TRY(vao->getIndexRange(context, type, count, indices, &indexRange)); in ValidateDrawElementsCommon()
1247 if (static_cast<GLint64>(indexRange.end) >= context->getCaps().maxElementIndex) in ValidateDrawElementsCommon()
1253 if (!ValidateDrawAttribs(context, entryPoint, static_cast<GLint>(indexRange.end))) in ValidateDrawElementsCommon()
1265 ANGLE_INLINE bool ValidateBindVertexArrayBase(const Context *context, in ValidateBindVertexArrayBase() argument
1269 if (!context->isVertexArrayGenerated(array)) in ValidateBindVertexArrayBase()