• Home
  • Raw
  • Download

Lines Matching refs:format

149                         const int h = parts.iterated.format.c[i].h;  in init_iterated_color()
150 const int l = parts.iterated.format.c[i].l; in init_iterated_color()
281 tmu.format = c->formats[tmu.format_idx]; in decodeTMUNeeds()
282 tmu.bits = tmu.format.size*8; in decodeTMUNeeds()
288 && tmu.format.size!=3; // XXX: only 8, 16 and 32 modes for now in decodeTMUNeeds()
299 if (tmu.format.c[0].h) tmu.mask |= 0x1; in decodeTMUNeeds()
300 if (tmu.format.c[1].h) tmu.mask |= 0x2; in decodeTMUNeeds()
301 if (tmu.format.c[2].h) tmu.mask |= 0x4; in decodeTMUNeeds()
302 if (tmu.format.c[3].h) tmu.mask |= 0x8; in decodeTMUNeeds()
306 if (!tmu.format.c[GGLFormat::ALPHA].h) { in decodeTMUNeeds()
422 if (tmu.format.size == 1) { in build_textures()
427 if (tmu.format.size == 4) { in build_textures()
453 texel.setTo(regs.obtain(), &tmu.format); in build_textures()
487 if (tmu.format.size == 1) { in build_textures()
493 } else if (tmu.format.size == 2) { in build_textures()
499 } else if (tmu.format.size == 4) { in build_textures()
515 const int shift = 31 - gglClz(tmu.format.size); in build_textures()
624 texel.setTo(regs.obtain(), &tmu.format); in build_textures()
647 switch (tmu.format.size) { in build_textures()
702 if (tmu.format.components != GGL_ALPHA && in filter8()
703 tmu.format.components != GGL_LUMINANCE) in filter8()
754 if (!texel.format.c[i].h) continue; in filter8()
755 texel.format.c[i].h = FRAC_BITS*2+8; in filter8()
756 texel.format.c[i].l = FRAC_BITS*2; // keeping 8 bits in enough in filter8()
758 texel.format.size = 4; in filter8()
759 texel.format.bitsPerPixel = 32; in filter8()
807 texel.format.size = 4; in filter16()
808 texel.format.bitsPerPixel = 32; in filter16()
811 if (!texel.format.c[i].h) continue; in filter16()
812 const uint32_t offset = (mask & tmu.format.mask(i)) ? 0 : shift; in filter16()
813 texel.format.c[i].h = tmu.format.c[i].h + offset + prec; in filter16()
814 texel.format.c[i].l = texel.format.c[i].h - (tmu.format.bits(i) + prec); in filter16()