Lines Matching refs:pixel

253         pixel_t pixel;  in scanline_core()  local
258 pixel = directTex ? parts.texel[directTex-1] : parts.iterated; in scanline_core()
259 pixel.flags &= ~CORRUPTIBLE; in scanline_core()
272 pixel.setTo(regs.obtain(), &mCbFormat, FIRST); in scanline_core()
274 build_component(pixel, parts, GGLFormat::ALPHA, regs); in scanline_core()
282 build_component(pixel, parts, GGLFormat::RED, regs); in scanline_core()
283 build_component(pixel, parts, GGLFormat::GREEN, regs); in scanline_core()
284 build_component(pixel, parts, GGLFormat::BLUE, regs); in scanline_core()
286 pixel.flags |= CORRUPTIBLE; in scanline_core()
292 if (pixel.reg == -1) { in scanline_core()
295 pixel = mDstPixel; in scanline_core()
300 build_logic_op(pixel, regs); in scanline_core()
303 build_masking(pixel, regs); in scanline_core()
306 store(parts.cbPtr, pixel, WRITE_BACK); in scanline_core()
455 void GGLAssembler::build_component( pixel_t& pixel, in build_component() argument
465 const int dst_component_size = pixel.component_size(component); in build_component()
477 downshift(pixel, component, temp, parts.dither); in build_component()
815 void GGLAssembler::build_logic_op(pixel_t& pixel, Scratch& regs) in build_logic_op() argument
824 pixel_t s(pixel); in build_logic_op()
825 if (!(pixel.flags & CORRUPTIBLE)) { in build_logic_op()
826 pixel.reg = regs.obtain(); in build_logic_op()
827 pixel.flags |= CORRUPTIBLE; in build_logic_op()
832 case GGL_CLEAR: MOV(AL, 0, pixel.reg, imm(0)); break; in build_logic_op()
833 case GGL_AND: AND(AL, 0, pixel.reg, s.reg, d.reg); break; in build_logic_op()
834 case GGL_AND_REVERSE: BIC(AL, 0, pixel.reg, s.reg, d.reg); break; in build_logic_op()
836 case GGL_AND_INVERTED: BIC(AL, 0, pixel.reg, d.reg, s.reg); break; in build_logic_op()
837 case GGL_NOOP: MOV(AL, 0, pixel.reg, d.reg); break; in build_logic_op()
838 case GGL_XOR: EOR(AL, 0, pixel.reg, s.reg, d.reg); break; in build_logic_op()
839 case GGL_OR: ORR(AL, 0, pixel.reg, s.reg, d.reg); break; in build_logic_op()
840 case GGL_NOR: ORR(AL, 0, pixel.reg, s.reg, d.reg); in build_logic_op()
841 MVN(AL, 0, pixel.reg, pixel.reg); break; in build_logic_op()
842 case GGL_EQUIV: EOR(AL, 0, pixel.reg, s.reg, d.reg); in build_logic_op()
843 MVN(AL, 0, pixel.reg, pixel.reg); break; in build_logic_op()
844 case GGL_INVERT: MVN(AL, 0, pixel.reg, d.reg); break; in build_logic_op()
846 BIC(AL, 0, pixel.reg, d.reg, s.reg); in build_logic_op()
847 MVN(AL, 0, pixel.reg, pixel.reg); break; in build_logic_op()
848 case GGL_COPY_INVERTED: MVN(AL, 0, pixel.reg, s.reg); break; in build_logic_op()
850 BIC(AL, 0, pixel.reg, s.reg, d.reg); in build_logic_op()
851 MVN(AL, 0, pixel.reg, pixel.reg); break; in build_logic_op()
852 case GGL_NAND: AND(AL, 0, pixel.reg, s.reg, d.reg); in build_logic_op()
853 MVN(AL, 0, pixel.reg, pixel.reg); break; in build_logic_op()
854 case GGL_SET: MVN(AL, 0, pixel.reg, imm(0)); break; in build_logic_op()
935 void GGLAssembler::build_masking(pixel_t& pixel, Scratch& regs) in build_masking() argument
944 pixel_t s(pixel); in build_masking()
945 if (!(pixel.flags & CORRUPTIBLE)) { in build_masking()
946 pixel.reg = regs.obtain(); in build_masking()
947 pixel.flags |= CORRUPTIBLE; in build_masking()
969 build_and_immediate(pixel.reg, s.reg, mask, fb.size()); in build_masking()
970 s = pixel; in build_masking()
980 if (s.reg == pixel.reg) { in build_masking()
983 MOV(AL, 0, pixel.reg, fb.reg); in build_masking()
986 ORR(AL, 0, pixel.reg, s.reg, fb.reg); in build_masking()