Lines Matching refs:format

145                         const int h = parts.iterated.format.c[i].h;  in init_iterated_color()
146 const int l = parts.iterated.format.c[i].l; in init_iterated_color()
277 tmu.format = c->formats[tmu.format_idx]; in decodeTMUNeeds()
278 tmu.bits = tmu.format.size*8; in decodeTMUNeeds()
284 && tmu.format.size!=3; // XXX: only 8, 16 and 32 modes for now in decodeTMUNeeds()
295 if (tmu.format.c[0].h) tmu.mask |= 0x1; in decodeTMUNeeds()
296 if (tmu.format.c[1].h) tmu.mask |= 0x2; in decodeTMUNeeds()
297 if (tmu.format.c[2].h) tmu.mask |= 0x4; in decodeTMUNeeds()
298 if (tmu.format.c[3].h) tmu.mask |= 0x8; in decodeTMUNeeds()
302 if (!tmu.format.c[GGLFormat::ALPHA].h) { in decodeTMUNeeds()
418 if (tmu.format.size == 1) { in build_textures()
423 if (tmu.format.size == 4) { in build_textures()
449 texel.setTo(regs.obtain(), &tmu.format); in build_textures()
483 if (tmu.format.size == 1) { in build_textures()
489 } else if (tmu.format.size == 2) { in build_textures()
495 } else if (tmu.format.size == 4) { in build_textures()
511 const int shift = 31 - gglClz(tmu.format.size); in build_textures()
620 texel.setTo(regs.obtain(), &tmu.format); in build_textures()
643 switch (tmu.format.size) { in build_textures()
698 if (tmu.format.components != GGL_ALPHA && in filter8()
699 tmu.format.components != GGL_LUMINANCE) in filter8()
750 if (!texel.format.c[i].h) continue; in filter8()
751 texel.format.c[i].h = FRAC_BITS*2+8; in filter8()
752 texel.format.c[i].l = FRAC_BITS*2; // keeping 8 bits in enough in filter8()
754 texel.format.size = 4; in filter8()
755 texel.format.bitsPerPixel = 32; in filter8()
803 texel.format.size = 4; in filter16()
804 texel.format.bitsPerPixel = 32; in filter16()
807 if (!texel.format.c[i].h) continue; in filter16()
808 const uint32_t offset = (mask & tmu.format.mask(i)) ? 0 : shift; in filter16()
809 texel.format.c[i].h = tmu.format.c[i].h + offset + prec; in filter16()
810 texel.format.c[i].l = texel.format.c[i].h - (tmu.format.bits(i) + prec); in filter16()