Lines Matching refs:levelInfo
554 LevelInfoGL levelInfo = in setCompressedImage() local
556 ASSERT(!levelInfo.lumaWorkaround.enabled); in setCompressedImage()
557 setLevelInfo(context, target, level, 1, levelInfo); in setCompressedImage()
690 LevelInfoGL levelInfo = in copyImage() local
694 if (levelInfo.lumaWorkaround.enabled) in copyImage()
701 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, in copyImage()
707 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, in copyImage()
732 setLevelInfo(context, target, level, 1, levelInfo); in copyImage()
771 const LevelInfoGL &levelInfo = getLevelInfo(target, level); in copySubImage() local
772 if (levelInfo.lumaWorkaround.enabled) in copySubImage()
776 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, clippedOffset, in copySubImage()
1633 const LevelInfoGL &levelInfo = getBaseLevelInfo(); in syncTextureStateSwizzle() local
1635 if (levelInfo.lumaWorkaround.enabled) in syncTextureStateSwizzle()
1642 if (levelInfo.sourceFormat == GL_LUMINANCE || in syncTextureStateSwizzle()
1643 levelInfo.sourceFormat == GL_LUMINANCE_ALPHA) in syncTextureStateSwizzle()
1647 ASSERT(levelInfo.lumaWorkaround.workaroundFormat == GL_RED || in syncTextureStateSwizzle()
1648 levelInfo.lumaWorkaround.workaroundFormat == GL_RG); in syncTextureStateSwizzle()
1653 ASSERT(levelInfo.sourceFormat == GL_ALPHA); in syncTextureStateSwizzle()
1660 if (levelInfo.sourceFormat == GL_LUMINANCE) in syncTextureStateSwizzle()
1665 else if (levelInfo.sourceFormat == GL_ALPHA) in syncTextureStateSwizzle()
1669 ASSERT(levelInfo.lumaWorkaround.workaroundFormat == GL_RED); in syncTextureStateSwizzle()
1674 ASSERT(levelInfo.sourceFormat == GL_LUMINANCE_ALPHA); in syncTextureStateSwizzle()
1677 ASSERT(levelInfo.lumaWorkaround.workaroundFormat == GL_RG); in syncTextureStateSwizzle()
1693 else if (levelInfo.depthStencilWorkaround) in syncTextureStateSwizzle()
1734 else if (levelInfo.emulatedAlphaChannel) in syncTextureStateSwizzle()
1752 const LevelInfoGL &levelInfo) in setLevelInfo() argument
1756 bool updateWorkarounds = levelInfo.depthStencilWorkaround || levelInfo.lumaWorkaround.enabled || in setLevelInfo()
1757 levelInfo.emulatedAlphaChannel; in setLevelInfo()
1769 curLevelInfo = levelInfo; in setLevelInfo()
1783 const LevelInfoGL &levelInfo) in setLevelInfo() argument
1789 setLevelInfo(context, target, level, levelCount, levelInfo); in setLevelInfo()
1794 setLevelInfo(context, NonCubeTextureTypeToTarget(type), level, levelCount, levelInfo); in setLevelInfo()