#include "libANGLE/validationES.h"
#include "libANGLE/Context.h"
#include "libANGLE/Display.h"
#include "libANGLE/ErrorStrings.h"
#include "libANGLE/Framebuffer.h"
#include "libANGLE/FramebufferAttachment.h"
#include "libANGLE/Image.h"
#include "libANGLE/Program.h"
#include "libANGLE/Query.h"
#include "libANGLE/Texture.h"
#include "libANGLE/TransformFeedback.h"
#include "libANGLE/angletypes.h"
#include "libANGLE/formatutils.h"
#include "libANGLE/queryconversions.h"
#include "libANGLE/queryutils.h"
#include "libANGLE/validationES2.h"
#include "libANGLE/validationES3.h"
#include "common/mathutil.h"
#include "common/utilities.h"
usingnamespaceangle;
namespace gl
{
usingnamespaceerr;
namespace
{
bool CompressedTextureFormatRequiresExactSize(GLenum internalFormat)
{ … }
bool DifferenceCanOverflow(GLint a, GLint b)
{ … }
bool ValidReadPixelsTypeEnum(const Context *context, GLenum type)
{ … }
bool ValidReadPixelsFormatEnum(const Context *context, GLenum format)
{ … }
bool ValidReadPixelsUnsignedNormalizedDepthType(const Context *context,
const gl::InternalFormat *info,
GLenum type)
{ … }
bool ValidReadPixelsFloatDepthType(const Context *context,
const gl::InternalFormat *info,
GLenum type)
{ … }
bool ValidReadPixelsFormatType(const Context *context,
const gl::InternalFormat *info,
GLenum format,
GLenum type)
{ … }
template <typename ParamType>
bool ValidateTextureWrapModeValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params,
bool restrictedWrapModes)
{ … }
template <typename ParamType>
bool ValidateTextureMinFilterValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params,
bool restrictedMinFilter)
{ … }
template <typename ParamType>
bool ValidateTextureMagFilterValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params)
{ … }
template <typename ParamType>
bool ValidateTextureCompareModeValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params)
{ … }
template <typename ParamType>
bool ValidateTextureCompareFuncValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params)
{ … }
template <typename ParamType>
bool ValidateTextureSRGBDecodeValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params)
{ … }
template <typename ParamType>
bool ValidateTextureSRGBOverrideValue(const Context *context,
angle::EntryPoint entryPoint,
const ParamType *params)
{ … }
bool ValidateTextureMaxAnisotropyExtensionEnabled(const Context *context,
angle::EntryPoint entryPoint)
{ … }
bool ValidateTextureMaxAnisotropyValue(const Context *context,
angle::EntryPoint entryPoint,
GLfloat paramValue)
{ … }
bool ValidateFragmentShaderColorBufferMaskMatch(const Context *context)
{ … }
bool ValidateFragmentShaderColorBufferTypeMatch(const Context *context)
{ … }
bool ValidateVertexShaderAttributeTypeMatch(const Context *context)
{ … }
bool IsCompatibleDrawModeWithGeometryShader(PrimitiveMode drawMode,
PrimitiveMode geometryShaderInputPrimitiveType)
{ … }
bool IsValidGLES1TextureParameter(GLenum pname)
{ … }
unsigned int GetSamplerParameterCount(GLenum pname)
{ … }
const char *ValidateProgramDrawAdvancedBlendState(const Context *context,
const ProgramExecutable &executable)
{ … }
ANGLE_INLINE const char *ValidateProgramDrawStates(const Context *context,
const Extensions &extensions,
const ProgramExecutable &executable)
{ … }
}
void SetRobustLengthParam(const GLsizei *length, GLsizei value)
{ … }
bool ValidTextureTarget(const Context *context, TextureType type)
{ … }
bool ValidTexture2DTarget(const Context *context, TextureType type)
{ … }
bool ValidTexture3DTarget(const Context *context, TextureType target)
{ … }
bool ValidTextureExternalTarget(const Context *context, TextureType target)
{ … }
bool ValidTextureExternalTarget(const Context *context, TextureTarget target)
{ … }
bool ValidTexture2DDestinationTarget(const Context *context, TextureTarget target)
{ … }
bool ValidateTransformFeedbackPrimitiveMode(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode transformFeedbackPrimitiveMode,
PrimitiveMode renderPrimitiveMode)
{ … }
bool ValidateDrawElementsInstancedBase(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLsizei count,
DrawElementsType type,
const void *indices,
GLsizei primcount,
GLuint baseinstance)
{ … }
bool ValidateDrawArraysInstancedBase(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLint first,
GLsizei count,
GLsizei primcount,
GLuint baseinstance)
{ … }
bool ValidateDrawInstancedANGLE(const Context *context, angle::EntryPoint entryPoint)
{ … }
bool ValidTexture3DDestinationTarget(const Context *context, TextureTarget target)
{ … }
bool ValidTexLevelDestinationTarget(const Context *context, TextureType type)
{ … }
bool ValidFramebufferTarget(const Context *context, GLenum target)
{ … }
bool ValidMipLevel(const Context *context, TextureType type, GLint level)
{ … }
bool ValidImageSizeParameters(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLint level,
GLsizei width,
GLsizei height,
GLsizei depth,
bool isSubImage)
{ … }
bool ValidCompressedBaseLevel(GLsizei size, GLuint blockSize, GLint level)
{ … }
bool ValidCompressedImageSize(const Context *context,
GLenum internalFormat,
GLint level,
GLsizei width,
GLsizei height,
GLsizei depth)
{ … }
bool ValidCompressedSubImageSize(const Context *context,
GLenum internalFormat,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
size_t textureWidth,
size_t textureHeight,
size_t textureDepth)
{ … }
bool ValidImageDataSize(const Context *context,
angle::EntryPoint entryPoint,
TextureType texType,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
const void *pixels,
GLsizei imageSize)
{ … }
bool ValidQueryType(const Context *context, QueryType queryType)
{ … }
bool ValidateWebGLVertexAttribPointer(const Context *context,
angle::EntryPoint entryPoint,
VertexAttribType type,
GLboolean normalized,
GLsizei stride,
const void *ptr,
bool pureInteger)
{ … }
Program *GetValidProgramNoResolve(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID id)
{ … }
Program *GetValidProgram(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id)
{ … }
Shader *GetValidShader(const Context *context, angle::EntryPoint entryPoint, ShaderProgramID id)
{ … }
bool ValidateAttachmentTarget(const Context *context,
angle::EntryPoint entryPoint,
GLenum attachment)
{ … }
bool ValidateRenderbufferStorageParametersBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height)
{ … }
bool ValidateBlitFramebufferParameters(const Context *context,
angle::EntryPoint entryPoint,
GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter)
{ … }
bool ValidateBindFramebufferBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
FramebufferID framebuffer)
{ … }
bool ValidateBindRenderbufferBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
RenderbufferID renderbuffer)
{ … }
bool ValidateFramebufferParameteriBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum pname,
GLint param)
{ … }
bool ValidateFramebufferRenderbufferBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
RenderbufferID renderbuffer)
{ … }
bool ValidateFramebufferTextureBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum attachment,
TextureID texture,
GLint level)
{ … }
bool ValidateGenerateMipmapBase(const Context *context,
angle::EntryPoint entryPoint,
TextureType target)
{ … }
bool ValidateReadPixelsRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const GLsizei *length,
const GLsizei *columns,
const GLsizei *rows,
const void *pixels)
{ … }
bool ValidateReadnPixelsEXT(const Context *context,
angle::EntryPoint entryPoint,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const void *pixels)
{ … }
bool ValidateReadnPixelsRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const GLsizei *length,
const GLsizei *columns,
const GLsizei *rows,
const void *data)
{ … }
bool ValidateGenQueriesEXT(const Context *context,
angle::EntryPoint entryPoint,
GLsizei n,
const QueryID *ids)
{ … }
bool ValidateDeleteQueriesEXT(const Context *context,
angle::EntryPoint entryPoint,
GLsizei n,
const QueryID *ids)
{ … }
bool ValidateIsQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryID id)
{ … }
bool ValidateBeginQueryBase(const Context *context,
angle::EntryPoint entryPoint,
QueryType target,
QueryID id)
{ … }
bool ValidateBeginQueryEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryType target,
QueryID id)
{ … }
bool ValidateEndQueryBase(const Context *context, angle::EntryPoint entryPoint, QueryType target)
{ … }
bool ValidateEndQueryEXT(const Context *context, angle::EntryPoint entryPoint, QueryType target)
{ … }
bool ValidateQueryCounterEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
QueryType target)
{ … }
bool ValidateGetQueryivBase(const Context *context,
angle::EntryPoint entryPoint,
QueryType target,
GLenum pname,
GLsizei *numParams)
{ … }
bool ValidateGetQueryivEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryType target,
GLenum pname,
const GLint *params)
{ … }
bool ValidateGetQueryivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
QueryType target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetQueryObjectValueBase(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLsizei *numParams)
{ … }
bool ValidateGetQueryObjectivEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
const GLint *params)
{ … }
bool ValidateGetQueryObjectivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetQueryObjectuivEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
const GLuint *params)
{ … }
bool ValidateGetQueryObjectuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateGetQueryObjecti64vEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLint64 *params)
{ … }
bool ValidateGetQueryObjecti64vRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
GLint64 *params)
{ … }
bool ValidateGetQueryObjectui64vEXT(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLuint64 *params)
{ … }
bool ValidateGetQueryObjectui64vRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
QueryID id,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
GLuint64 *params)
{ … }
bool ValidateUniformCommonBase(const Context *context,
angle::EntryPoint entryPoint,
const Program *program,
UniformLocation location,
GLsizei count,
const LinkedUniform **uniformOut)
{ … }
bool ValidateUniform1ivValue(const Context *context,
angle::EntryPoint entryPoint,
GLenum uniformType,
GLsizei count,
const GLint *value)
{ … }
bool ValidateUniformMatrixValue(const Context *context,
angle::EntryPoint entryPoint,
GLenum valueType,
GLenum uniformType)
{ … }
bool ValidateUniform(const Context *context,
angle::EntryPoint entryPoint,
GLenum valueType,
UniformLocation location,
GLsizei count)
{ … }
bool ValidateUniform1iv(const Context *context,
angle::EntryPoint entryPoint,
UniformLocation location,
GLsizei count,
const GLint *value)
{ … }
bool ValidateUniformMatrix(const Context *context,
angle::EntryPoint entryPoint,
GLenum valueType,
UniformLocation location,
GLsizei count,
GLboolean transpose)
{ … }
bool ValidateStateQuery(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLenum *nativeType,
unsigned int *numParams)
{ … }
bool ValidateGetBooleanvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLboolean *params)
{ … }
bool ValidateGetFloatvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetIntegervRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *data)
{ … }
bool ValidateGetInteger64vRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
GLint64 *data)
{ … }
bool ValidateRobustStateQuery(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLsizei bufSize,
GLenum *nativeType,
unsigned int *numParams)
{ … }
bool ValidateCopyImageSubDataTarget(const Context *context,
angle::EntryPoint entryPoint,
GLuint name,
GLenum target)
{ … }
bool ValidateCopyImageSubDataLevel(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLint level)
{ … }
bool ValidateCopyImageSubDataTargetRegion(const Context *context,
angle::EntryPoint entryPoint,
GLuint name,
GLenum target,
GLint level,
GLint offsetX,
GLint offsetY,
GLint offsetZ,
GLsizei width,
GLsizei height,
GLsizei *samples)
{ … }
bool ValidateCompressedRegion(const Context *context,
angle::EntryPoint entryPoint,
const InternalFormat &formatInfo,
GLsizei width,
GLsizei height)
{ … }
const InternalFormat &GetTargetFormatInfo(const Context *context,
angle::EntryPoint entryPoint,
GLuint name,
GLenum target,
GLint level)
{ … }
bool ValidateCopyMixedFormatCompatible(GLenum uncompressedFormat, GLenum compressedFormat)
{ … }
bool ValidateCopyCompressedFormatCompatible(const InternalFormat &srcFormatInfo,
const InternalFormat &dstFormatInfo)
{ … }
bool ValidateCopyFormatCompatible(const InternalFormat &srcFormatInfo,
const InternalFormat &dstFormatInfo)
{ … }
bool ValidateCopyImageSubDataBase(const Context *context,
angle::EntryPoint entryPoint,
GLuint srcName,
GLenum srcTarget,
GLint srcLevel,
GLint srcX,
GLint srcY,
GLint srcZ,
GLuint dstName,
GLenum dstTarget,
GLint dstLevel,
GLint dstX,
GLint dstY,
GLint dstZ,
GLsizei srcWidth,
GLsizei srcHeight,
GLsizei srcDepth)
{ … }
bool ValidateCopyTexImageParametersBase(const Context *context,
angle::EntryPoint entryPoint,
TextureTarget target,
GLint level,
GLenum internalformat,
bool isSubImage,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border,
Format *textureFormatOut)
{ … }
const char *ValidateProgramPipelineDrawStates(const Context *context,
const Extensions &extensions,
ProgramPipeline *programPipeline)
{ … }
const char *ValidateProgramPipelineAttachedPrograms(ProgramPipeline *programPipeline)
{ … }
const char *ValidateDrawStates(const Context *context, GLenum *outErrorCode)
{ … }
const char *ValidateProgramPipeline(const Context *context)
{ … }
void RecordDrawModeError(const Context *context, angle::EntryPoint entryPoint, PrimitiveMode mode)
{ … }
bool ValidateDrawArraysInstancedANGLE(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLint first,
GLsizei count,
GLsizei primcount)
{ … }
bool ValidateDrawArraysInstancedEXT(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLint first,
GLsizei count,
GLsizei primcount)
{ … }
const char *ValidateDrawElementsStates(const Context *context)
{ … }
bool ValidateDrawElementsInstancedANGLE(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLsizei count,
DrawElementsType type,
const void *indices,
GLsizei primcount)
{ … }
bool ValidateDrawElementsInstancedEXT(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLsizei count,
DrawElementsType type,
const void *indices,
GLsizei primcount)
{ … }
bool ValidateGetUniformBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location)
{ … }
bool ValidateSizedGetUniform(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
GLsizei *length)
{ … }
bool ValidateGetnUniformfvEXT(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLfloat *params)
{ … }
bool ValidateGetnUniformfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetnUniformivEXT(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLint *params)
{ … }
bool ValidateGetnUniformivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetnUniformuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateGetUniformfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetUniformivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetUniformuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformLocation location,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateDiscardFramebufferBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLsizei numAttachments,
const GLenum *attachments,
bool defaultFramebuffer)
{ … }
bool ValidateInsertEventMarkerEXT(const Context *context,
angle::EntryPoint entryPoint,
GLsizei length,
const char *marker)
{ … }
bool ValidatePushGroupMarkerEXT(const Context *context,
angle::EntryPoint entryPoint,
GLsizei length,
const char *marker)
{ … }
bool ValidateEGLImageObject(const Context *context,
angle::EntryPoint entryPoint,
TextureType type,
egl::ImageID imageID)
{ … }
bool ValidateEGLImageTargetTexture2DOES(const Context *context,
angle::EntryPoint entryPoint,
TextureType type,
egl::ImageID image)
{ … }
bool ValidateEGLImageTargetRenderbufferStorageOES(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
egl::ImageID image)
{ … }
bool ValidateProgramBinaryBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
GLenum binaryFormat,
const void *binary,
GLint length)
{ … }
bool ValidateGetProgramBinaryBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
GLsizei bufSize,
const GLsizei *length,
const GLenum *binaryFormat,
const void *binary)
{ … }
bool ValidateDrawBuffersBase(const Context *context,
angle::EntryPoint entryPoint,
GLsizei n,
const GLenum *bufs)
{ … }
bool ValidateGetBufferPointervBase(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLenum pname,
GLsizei *length,
void *const *params)
{ … }
bool ValidateUnmapBufferBase(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target)
{ … }
bool ValidateMapBufferRangeBase(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLintptr offset,
GLsizeiptr length,
GLbitfield access)
{ … }
bool ValidateFlushMappedBufferRangeBase(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLintptr offset,
GLsizeiptr length)
{ … }
bool ValidateGenOrDelete(const Context *context, angle::EntryPoint entryPoint, GLint n)
{ … }
bool ValidateRobustEntryPoint(const Context *context, angle::EntryPoint entryPoint, GLsizei bufSize)
{ … }
bool ValidateRobustBufferSize(const Context *context,
angle::EntryPoint entryPoint,
GLsizei bufSize,
GLsizei numParams)
{ … }
bool ValidateGetFramebufferAttachmentParameterivBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei *numParams)
{ … }
bool ValidateGetFramebufferParameterivBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum pname,
const GLint *params)
{ … }
bool ValidateGetFramebufferAttachmentParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetBufferParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetBufferParameteri64vRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint64 *params)
{ … }
bool ValidateGetProgramivBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
GLenum pname,
GLsizei *numParams)
{ … }
bool ValidateGetProgramivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetRenderbufferParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetShaderivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID shader,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetTexParameterfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetTexParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetTexParameterIivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetTexParameterIuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateTexParameterfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLfloat *params)
{ … }
bool ValidateTexParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLint *params)
{ … }
bool ValidateTexParameterIivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLint *params)
{ … }
bool ValidateTexParameterIuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
const GLuint *params)
{ … }
bool ValidateGetSamplerParameterfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetSamplerParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetSamplerParameterIivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetSamplerParameterIuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateSamplerParameterfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLfloat *params)
{ … }
bool ValidateSamplerParameterivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLint *params)
{ … }
bool ValidateSamplerParameterIivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLint *param)
{ … }
bool ValidateSamplerParameterIuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
const GLuint *param)
{ … }
bool ValidateGetVertexAttribfvRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLfloat *params)
{ … }
bool ValidateGetVertexAttribivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetVertexAttribPointervRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
void *const *pointer)
{ … }
bool ValidateGetVertexAttribIivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetVertexAttribIuivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLuint *params)
{ … }
bool ValidateGetActiveUniformBlockivRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformBlockIndex uniformBlockIndex,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateGetInternalformativRobustANGLE(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
const GLsizei *length,
const GLint *params)
{ … }
bool ValidateRobustCompressedTexImageBase(const Context *context,
angle::EntryPoint entryPoint,
GLsizei imageSize,
GLsizei dataSize)
{ … }
bool ValidateGetBufferParameterBase(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
GLenum pname,
bool pointerVersion,
GLsizei *numParams)
{ … }
bool ValidateGetRenderbufferParameterivBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum pname,
GLsizei *length)
{ … }
bool ValidateGetShaderivBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID shader,
GLenum pname,
GLsizei *length)
{ … }
bool ValidateGetTexParameterBase(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei *length)
{ … }
bool ValidateGetVertexAttribBase(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLenum pname,
GLsizei *length,
bool pointer,
bool pureIntegerEntryPoint)
{ … }
bool ValidatePixelPack(const Context *context,
angle::EntryPoint entryPoint,
GLenum format,
GLenum type,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLsizei bufSize,
GLsizei *length,
const void *pixels)
{ … }
bool ValidateReadPixelsBase(const Context *context,
angle::EntryPoint entryPoint,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
GLsizei *length,
GLsizei *columns,
GLsizei *rows,
const void *pixels)
{ … }
template <typename ParamType>
bool ValidateTexParameterBase(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLenum pname,
GLsizei bufSize,
bool vectorParams,
const ParamType *params)
{ … }
template bool ValidateTexParameterBase(const Context *,
angle::EntryPoint,
TextureType,
GLenum,
GLsizei,
bool,
const GLfloat *);
template bool ValidateTexParameterBase(const Context *,
angle::EntryPoint,
TextureType,
GLenum,
GLsizei,
bool,
const GLint *);
template bool ValidateTexParameterBase(const Context *,
angle::EntryPoint,
TextureType,
GLenum,
GLsizei,
bool,
const GLuint *);
bool ValidateGetActiveUniformBlockivBase(const Context *context,
angle::EntryPoint entryPoint,
ShaderProgramID program,
UniformBlockIndex uniformBlockIndex,
GLenum pname,
GLsizei *length)
{ … }
template <typename ParamType>
bool ValidateSamplerParameterBase(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei bufSize,
bool vectorParams,
const ParamType *params)
{ … }
template bool ValidateSamplerParameterBase(const Context *,
angle::EntryPoint,
SamplerID,
GLenum,
GLsizei,
bool,
const GLfloat *);
template bool ValidateSamplerParameterBase(const Context *,
angle::EntryPoint,
SamplerID,
GLenum,
GLsizei,
bool,
const GLint *);
template bool ValidateSamplerParameterBase(const Context *,
angle::EntryPoint,
SamplerID,
GLenum,
GLsizei,
bool,
const GLuint *);
bool ValidateGetSamplerParameterBase(const Context *context,
angle::EntryPoint entryPoint,
SamplerID sampler,
GLenum pname,
GLsizei *length)
{ … }
bool ValidateGetInternalFormativBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLsizei *numParams)
{ … }
bool ValidateFramebufferNotMultisampled(const Context *context,
angle::EntryPoint entryPoint,
const Framebuffer *framebuffer,
bool checkReadBufferResourceSamples)
{ … }
bool ValidateMultitextureUnit(const PrivateState &state,
ErrorSet *errors,
angle::EntryPoint entryPoint,
GLenum texture)
{ … }
bool ValidateTexStorageMultisample(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLsizei samples,
GLint internalFormat,
GLsizei width,
GLsizei height)
{ … }
bool ValidateTexStorage2DMultisampleBase(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLsizei samples,
GLint internalFormat,
GLsizei width,
GLsizei height)
{ … }
bool ValidateGetTexLevelParameterBase(const Context *context,
angle::EntryPoint entryPoint,
TextureTarget target,
GLint level,
GLenum pname,
GLsizei *length)
{ … }
bool ValidateGetMultisamplefvBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum pname,
GLuint index,
const GLfloat *val)
{ … }
bool ValidateSampleMaskiBase(const PrivateState &state,
ErrorSet *errors,
angle::EntryPoint entryPoint,
GLuint maskNumber,
GLbitfield mask)
{ … }
void RecordDrawAttribsError(const Context *context, angle::EntryPoint entryPoint)
{ … }
bool ValidateLoseContextCHROMIUM(const Context *context,
angle::EntryPoint entryPoint,
GraphicsResetStatus current,
GraphicsResetStatus other)
{ … }
bool ValidateTexImage2DExternalANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureTarget target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type)
{ … }
bool ValidateInvalidateTextureANGLE(const Context *context,
angle::EntryPoint entryPoint,
TextureType target)
{ … }
bool ValidateProgramExecutableXFBBuffersPresent(const Context *context,
const ProgramExecutable *programExecutable)
{ … }
bool ValidateLogicOpCommon(const PrivateState &state,
ErrorSet *errors,
angle::EntryPoint entryPoint,
LogicalOperation opcodePacked)
{ … }
}