Home
last modified time | relevance | path

Searched refs:SET_ERROR_IF (Results 1 – 8 of 8) sorted by relevance

/hardware/google/gfxstream/guest/GLESv2_enc/
DGL2Encoder.cpp54 #define SET_ERROR_IF(condition, err) if((condition)) { \ macro
655 SET_ERROR_IF(!GLESv2Validation::pixelStoreParam(ctx, param), GL_INVALID_ENUM); in s_glPixelStorei()
656 SET_ERROR_IF(!GLESv2Validation::pixelStoreValue(param, value), GL_INVALID_VALUE); in s_glPixelStorei()
665 SET_ERROR_IF(!GLESv2Validation::bufferTarget(ctx, target), GL_INVALID_ENUM); in s_glBindBuffer()
690 SET_ERROR_IF(!GLESv2Validation::bufferTarget(ctx, target), GL_INVALID_ENUM); in s_glBufferData()
692 SET_ERROR_IF(bufferId==0, GL_INVALID_OPERATION); in s_glBufferData()
693 SET_ERROR_IF(size<0, GL_INVALID_VALUE); in s_glBufferData()
694 SET_ERROR_IF(!GLESv2Validation::bufferUsage(ctx, usage), GL_INVALID_ENUM); in s_glBufferData()
708 SET_ERROR_IF(!GLESv2Validation::bufferTarget(ctx, target), GL_INVALID_ENUM); in s_glBufferSubData()
710 SET_ERROR_IF(bufferId==0, GL_INVALID_OPERATION); in s_glBufferSubData()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/GLES_V2/
DGLESv2Imp.cpp495SET_ERROR_IF (!GLESv2Validate::textureEnum(texture,ctx->getMaxCombinedTexUnits()),GL_INVALID_ENUM); in glActiveTexture()
505 SET_ERROR_IF(globalProgramName==0, GL_INVALID_VALUE); in glAttachShader()
508 SET_ERROR_IF(globalShaderName==0, GL_INVALID_VALUE); in glAttachShader()
514 SET_ERROR_IF(!shaderData || !programData ,GL_INVALID_OPERATION); in glAttachShader()
515 SET_ERROR_IF(!(shaderData->getDataType() ==SHADER_DATA) || in glAttachShader()
520 SET_ERROR_IF((pData->getAttachedShader(shaderType)!=0), GL_INVALID_OPERATION); in glAttachShader()
532 SET_ERROR_IF(!GLESv2Validate::attribName(name),GL_INVALID_OPERATION); in glBindAttribLocation()
533SET_ERROR_IF(!GLESv2Validate::attribIndex(index, ctx->getCaps()->maxVertexAttribs),GL_INVALID_VALU… in glBindAttribLocation()
537 SET_ERROR_IF(globalProgramName==0, GL_INVALID_VALUE); in glBindAttribLocation()
540 SET_ERROR_IF(objData->getDataType()!=PROGRAM_DATA,GL_INVALID_OPERATION); in glBindAttribLocation()
[all …]
DGLESv30Imp.cpp39 SET_ERROR_IF(!GLESv2Validate::bufferTarget(ctx, target),GL_INVALID_ENUM); in glFlushMappedBufferRange()
45 SET_ERROR_IF(!GLESv2Validate::bufferTarget(ctx, target),GL_INVALID_ENUM); in glBindBufferRange()
56 SET_ERROR_IF(!GLESv2Validate::bufferTarget(ctx, target),GL_INVALID_ENUM); in glBindBufferBase()
92 SET_ERROR_IF(!GLESv2Validate::bufferTarget(ctx, target),GL_INVALID_ENUM); in glGetBufferParameteri64v()
98 SET_ERROR_IF(!GLESv2Validate::bufferTarget(ctx, target),GL_INVALID_ENUM); in glGetBufferPointerv()
146 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glUniform1ui()
153 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glUniform2ui()
160 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glUniform3ui()
167 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glUniform4ui()
174 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glUniform1uiv()
[all …]
DGLESv31Imp.cpp26 SET_ERROR_IF(n < 0,GL_INVALID_VALUE); in glGenProgramPipelines()
33 SET_ERROR_IF(n < 0,GL_INVALID_VALUE); in glDeleteProgramPipelines()
128 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform1f()
140 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform2f()
152 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform3f()
164 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform4f()
176 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform1i()
188 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform2i()
200 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform3i()
212 SET_ERROR_IF(hostLoc < -1, GL_INVALID_OPERATION); in glProgramUniform4i()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/
DGLEScmImp.cpp198 SET_ERROR_IF(__core_error, __core_error); \
441 SET_ERROR_IF(!GLEScmValidate::textureEnum(texture,ctx->getMaxTexUnits()),GL_INVALID_ENUM); in glActiveTexture()
449 SET_ERROR_IF(!GLEScmValidate::alphaFunc(func),GL_INVALID_ENUM); in glAlphaFunc()
457 SET_ERROR_IF(!GLEScmValidate::alphaFunc(func),GL_INVALID_ENUM); in glAlphaFuncx()
465 SET_ERROR_IF(!GLEScmValidate::bufferTarget(target),GL_INVALID_ENUM); in glBindBuffer()
489 SET_ERROR_IF(!GLEScmValidate::textureTarget(target),GL_INVALID_ENUM) in glBindTexture()
509SET_ERROR_IF(ctx->GLTextureTargetToLocal(texData->target) != ctx->GLTextureTargetToLocal(target), … in glBindTexture()
524SET_ERROR_IF(!GLEScmValidate::blendSrc(sfactor) || !GLEScmValidate::blendDst(dfactor),GL_INVALID_E… in glBlendFunc()
532 SET_ERROR_IF(!GLEScmValidate::bufferTarget(target),GL_INVALID_ENUM); in glBufferData()
533 SET_ERROR_IF(!ctx->isBindedBuffer(target),GL_INVALID_OPERATION); in glBufferData()
[all …]
/hardware/google/gfxstream/guest/GLESv1_enc/
DGLEncoder.cpp36 #define SET_ERROR_IF(condition,err) if((condition)) { \ macro
373 SET_ERROR_IF(bufferId==0, GL_INVALID_OPERATION); in s_glBufferData()
374 SET_ERROR_IF(size<0, GL_INVALID_VALUE); in s_glBufferData()
384 SET_ERROR_IF(bufferId==0, GL_INVALID_OPERATION); in s_glBufferSubData()
387 SET_ERROR_IF(res, res); in s_glBufferSubData()
395 SET_ERROR_IF(n<0, GL_INVALID_VALUE); in s_glDeleteBuffers()
550 SET_ERROR_IF(count<0, GL_INVALID_VALUE); in s_glDrawElements()
837 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterf()
855 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameterfv()
873 SET_ERROR_IF((target == GL_TEXTURE_EXTERNAL_OES && in s_glTexParameteri()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
DTextureUtils.cpp465 SET_ERROR_IF((compressedSize != imageSize), GL_INVALID_VALUE); in doCompressedTexImage2D()
472 SET_ERROR_IF(!data, GL_INVALID_OPERATION); in doCompressedTexImage2D()
489 SET_ERROR_IF(res!=0, GL_INVALID_VALUE); in doCompressedTexImage2D()
500 SET_ERROR_IF(!data, GL_INVALID_OPERATION); in doCompressedTexImage2D()
521 SET_ERROR_IF(!result, GL_INVALID_VALUE); in doCompressedTexImage2D()
528 SET_ERROR_IF( in doCompressedTexImage2D()
534 SET_ERROR_IF(!data,GL_INVALID_OPERATION); in doCompressedTexImage2D()
582 SET_ERROR_IF((compressedSize != imageSize), GL_INVALID_VALUE); in doCompressedTexImage2D()
589 SET_ERROR_IF(!data, GL_INVALID_OPERATION); in doCompressedTexImage2D()
603 SET_ERROR_IF(res != 0, GL_INVALID_VALUE); in doCompressedTexImage2D()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/include/GLcommon/
DGLESmacros.h88 #define SET_ERROR_IF(condition,err) if((condition)) { \ macro
102 SET_ERROR_IF(!ctx->dispatcher().func, GL_INVALID_OPERATION)