• Home
  • Raw
  • Download

Lines Matching +full:gl +full:- +full:rules

1 /*-------------------------------------------------------------------------
3 * -----------------------------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
126 if ((it->second & requirements) == requirements) in getFormats()
127 ret.insert(it->first); in getFormats()
152 if ((it->flags & requirements) == requirements) in getFormatFeatureExtensions()
153 ret.insert(it->requiredExtensions); in getFormatFeatureExtensions()
167 const glw::Functions& gl = ctx.getFunctions(); in detectGLESCompatibleContext() local
175 gl.getIntegerv(GL_MAJOR_VERSION, &majorVersion); in detectGLESCompatibleContext()
176 if (gl.getError() != GL_NO_ERROR) in detectGLESCompatibleContext()
179 gl.getIntegerv(GL_MINOR_VERSION, &minorVersion); in detectGLESCompatibleContext()
180 if (gl.getError() != GL_NO_ERROR) in detectGLESCompatibleContext()
226 for (const FormatKey* it2 = it->second.begin(); it2 != it->second.end(); it2++) in addFormats()
227 db.addCoreFormat(formatKeyInfo(*it2), it->first); in addFormats()
241 istringstream tokenStream(string(entryIt->extensions)); in addExtFormats()
265 for (const FormatKey* i2 = entryIt->formats.begin(); i2 != entryIt->formats.end(); i2++) in addExtFormats()
266 db.addExtensionFormat(formatKeyInfo(*i2), FormatFlags(entryIt->flags), requiredExtensions); in addExtFormats()
308 return rbo->numSamples; in imageNumSamples()
329 static void glInitFlat (const TextureFlat& cfg, GLenum target, const glw::Functions& gl) in glInitFlat() argument
336 gl.texImage2D(target, level, cfg.internalFormat.format, w, h, 0, in glInitFlat()
344 GLint depth_divider, const glw::Functions& gl) in glInitLayered() argument
352 gl.texImage3D(glTarget(cfg), level, cfg.internalFormat.format, w, h, depth, 0, in glInitLayered()
360 static void glInit (const Texture& cfg, const glw::Functions& gl) in glInit() argument
363 glInitFlat(*t2d, glTarget(*t2d), gl); in glInit()
366 // \todo [2013-12-05 lauri] in glInit()
380 glInitFlat(*tcm, *it, gl); in glInit()
383 glInitLayered(*t3d, 2, gl); in glInit()
385 glInitLayered(*t2a, 1, gl); in glInit()
388 static GLuint glCreate (const Image& cfg, const glw::Functions& gl) in glCreate() argument
393 gl.genRenderbuffers(1, &ret); in glCreate()
394 gl.bindRenderbuffer(GL_RENDERBUFFER, ret); in glCreate()
396 if (rbo->numSamples == 0) in glCreate()
397 gl.renderbufferStorage(GL_RENDERBUFFER, rbo->internalFormat.format, in glCreate()
398 rbo->width, rbo->height); in glCreate()
400 gl.renderbufferStorageMultisample( in glCreate()
401 GL_RENDERBUFFER, rbo->numSamples, rbo->internalFormat.format, in glCreate()
402 rbo->width, rbo->height); in glCreate()
404 gl.bindRenderbuffer(GL_RENDERBUFFER, 0); in glCreate()
408 gl.genTextures(1, &ret); in glCreate()
409 gl.bindTexture(glTarget(*tex), ret); in glCreate()
410 glInit(*tex, gl); in glCreate()
411 gl.bindTexture(glTarget(*tex), 0); in glCreate()
418 static void glDelete (const Image& cfg, GLuint img, const glw::Functions& gl) in glDelete() argument
421 gl.deleteRenderbuffers(1, &img); in glDelete()
423 gl.deleteTextures(1, &img); in glDelete()
429 const glw::Functions& gl) in attachAttachment() argument
433 gl.framebufferRenderbuffer(rAtt->target, attPoint, in attachAttachment()
434 rAtt->renderbufferTarget, rAtt->imageName); in attachAttachment()
437 gl.framebufferTexture2D(fAtt->target, attPoint, in attachAttachment()
438 fAtt->texTarget, fAtt->imageName, fAtt->level); in attachAttachment()
441 gl.framebufferTextureLayer(lAtt->target, attPoint, in attachAttachment()
442 lAtt->imageName, lAtt->level, lAtt->layer); in attachAttachment()
464 return lAtt->layer; in textureLayer()
482 // three-dimensional texture, then the value of in checkAttachmentCompleteness()
488 // two-dimensional array texture, then the value of in checkAttachmentCompleteness()
492 if (textureLayer(*texAtt) >= ltex->numLayers) in checkAttachmentCompleteness()
496 // "The width and height of image are non-zero." in checkAttachmentCompleteness()
497 if (image->width == 0 || image->height == 0) in checkAttachmentCompleteness()
498 …ddFBOStatus(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, "Width and height of an image are not non-zero"); in checkAttachmentCompleteness()
501 if (db.isKnownFormat(image->internalFormat)) in checkAttachmentCompleteness()
503 const FormatFlags flags = db.getFormatInfo(image->internalFormat); in checkAttachmentCompleteness()
556 /*--------------------------------------------------------------------*//*!
564 * The returned set is guaranteed to be non-empty, but it may contain multiple
567 * optional). Furthermore, the statuses may contain GL error codes, which
572 *//*--------------------------------------------------------------------*/
583 if (m_formats.isKnownFormat(it->second->internalFormat)) in validStatusCodes()
585 const FormatFlags flags = m_formats.getFormatInfo(it->second->internalFormat); in validStatusCodes()
588 …errorDescription = "Format " + de::toString(it->second->internalFormat) + " is not a valid format … in validStatusCodes()
590 else if (it->second->internalFormat.unsizedType == GL_NONE) in validStatusCodes()
593 errorDescription = "Format " + de::toString(it->second->internalFormat) + " does not exist"; in validStatusCodes()
597 // unsized type-format pair in validStatusCodes()
598 …errorDescription = "Format " + de::toString(it->second->internalFormat) + " is not a legal format"; in validStatusCodes()
603 cctx->addGLError(GL_INVALID_ENUM, errorDescription.c_str()); in validStatusCodes()
604 cctx->addGLError(GL_INVALID_OPERATION, errorDescription.c_str()); in validStatusCodes()
605 cctx->addGLError(GL_INVALID_VALUE, errorDescription.c_str()); in validStatusCodes()
611 if (m_formats.isKnownFormat(it->second->internalFormat)) in validStatusCodes()
613 const FormatFlags flags = m_formats.getFormatInfo(it->second->internalFormat); in validStatusCodes()
616 …const std::string reason = "Format " + de::toString(it->second->internalFormat) + " is not a valid… in validStatusCodes()
617 cctx->addGLError(GL_INVALID_ENUM, reason.c_str()); in validStatusCodes()
622 …const std::string reason = "Internal format " + de::toString(it->second->internalFormat) + " does … in validStatusCodes()
623 cctx->addGLError(GL_INVALID_ENUM, reason.c_str()); in validStatusCodes()
630 …cctx->addFBOStatus(GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, "No images attached to the frameb… in validStatusCodes()
634 const GLenum attPoint = it->first; in validStatusCodes()
635 const Attachment& att = *it->second; in validStatusCodes()
639 cctx->check(it->first, *it->second, image); in validStatusCodes()
642 return cctx->getStatusCodes(); in validStatusCodes()
705 logField(log, "Layers", toString(lTex->numLayers)); in logTexture()
717 DE_ASSERT(rAtt->renderbufferTarget == GL_RENDERBUFFER); in logAttachment()
722 logField(log, "Mipmap Level", toString(tAtt->level)); in logAttachment()
725 logField(log, "Texture Target", getTextureTargetName(fAtt->texTarget)); in logAttachment()
728 logField(log, "Layer", toString(lAtt->level)); in logAttachment()
738 const string num = toString(it->first); in logFramebufferConfig()
741 logRenderbuffer(*it->second, log); in logFramebufferConfig()
747 const string num = toString(it->first); in logFramebufferConfig()
750 logTexture(*it->second, log); in logFramebufferConfig()
760 const string attPointName = getFramebufferAttachmentName(it->first); in logFramebufferConfig()
762 logAttachment(*it->second, log); in logFramebufferConfig()
877 const tcu::ScopedLogSection section(log, "Rules", "Active rules"); in logRules()
880 logRule(log, glu::getErrorName(m_errorCodes[ndx].errorCode), m_errorCodes[ndx].rules); in logRules()
883 …le(log, glu::getFramebufferStatusName(m_errorStatuses[ndx].errorCode), m_errorStatuses[ndx].rules); in logRules()
893 …:logRule (tcu::TestLog& log, const std::string& ruleName, const std::set<std::string>& rules) const in logRule()
895 if (!rules.empty()) in logRule()
900 msg << "Rules:\n"; in logRule()
901 for (std::set<std::string>::const_iterator it = rules.begin(); it != rules.end(); ++it) in logRule()
914 dst[ndx].rules.insert(std::string(description)); in addViolation()
924 violation.rules.insert(std::string(description)); in addViolation()
930 FboBuilder::FboBuilder (GLuint fbo, GLenum target, const glw::Functions& gl) in FboBuilder() argument
933 , m_gl (gl) in FboBuilder()
942 glDelete(*it->second, it->first, m_gl); in ~FboBuilder()
946 glDelete(*it->second, it->first, m_gl); in ~FboBuilder()