Lines Matching refs:format
138 comment("load initial iterated color (dest format packed)");
149 const int h = parts.iterated.format.c[i].h;
150 const int l = parts.iterated.format.c[i].l;
281 tmu.format = c->formats[tmu.format_idx];
282 tmu.bits = tmu.format.size*8;
288 && tmu.format.size!=3; // XXX: only 8, 16 and 32 modes for now
299 if (tmu.format.c[0].h) tmu.mask |= 0x1;
300 if (tmu.format.c[1].h) tmu.mask |= 0x2;
301 if (tmu.format.c[2].h) tmu.mask |= 0x4;
302 if (tmu.format.c[3].h) tmu.mask |= 0x8;
306 if (!tmu.format.c[GGLFormat::ALPHA].h) {
422 if (tmu.format.size == 1) {
427 format.size == 4) {
453 texel.setTo(regs.obtain(), &tmu.format);
487 if (tmu.format.size == 1) {
493 } else if (tmu.format.size == 2) {
499 } else if (tmu.format.size == 4) {
515 const int shift = 31 - gglClz(tmu.format.size);
624 texel.setTo(regs.obtain(), &tmu.format);
647 switch (tmu.format.size) {
702 if (tmu.format.components != GGL_ALPHA &&
703 tmu.format.components != GGL_LUMINANCE)
705 // this is a packed format, and we don't support
754 if (!texel.format.c[i].h) continue;
755 texel.format.c[i].h = FRAC_BITS*2+8;
756 texel.format.c[i].l = FRAC_BITS*2; // keeping 8 bits in enough
758 texel.format.size = 4;
759 texel.format.bitsPerPixel = 32;
797 // unsupported format, do something sensical...
798 ALOGE("Unsupported 16-bits texture format (%d)", tmu.format_idx);
806 // update the texel format
807 texel.format.size = 4;
808 texel.format.bitsPerPixel = 32;
811 if (!texel.format.c[i].h) continue;
812 const uint32_t offset = (mask & tmu.format.mask(i)) ? 0 : shift;
813 texel.format.c[i].h = tmu.format.c[i].h + offset + prec;
814 texel.format.c[i].l = texel.format.c[i].h - (tmu.format.bits(i) + prec);