• Home
  • Raw
  • Download

Lines Matching refs:fragment

469 static void blending(context_t* c, pixel_t* fragment, pixel_t* fb);
496 void blending(context_t* c, pixel_t* fragment, pixel_t* fb) in blending() argument
498 rescale(fragment->c[0], fragment->s[0], fb->c[0], fb->s[0]); in blending()
499 rescale(fragment->c[1], fragment->s[1], fb->c[1], fb->s[1]); in blending()
500 rescale(fragment->c[2], fragment->s[2], fb->c[2], fb->s[2]); in blending()
501 rescale(fragment->c[3], fragment->s[3], fb->c[3], fb->s[3]); in blending()
504 blend_factor(c, &sf, c->state.blend.src, fragment, fb); in blending()
505 blend_factor(c, &df, c->state.blend.dst, fragment, fb); in blending()
507 fragment->c[1] = in blending()
508 gglMulAddx(fragment->c[1], sf.c[1], gglMulx(fb->c[1], df.c[1])); in blending()
509 fragment->c[2] = in blending()
510 gglMulAddx(fragment->c[2], sf.c[2], gglMulx(fb->c[2], df.c[2])); in blending()
511 fragment->c[3] = in blending()
512 gglMulAddx(fragment->c[3], sf.c[3], gglMulx(fb->c[3], df.c[3])); in blending()
515 blend_factor(c, &sf, c->state.blend.src_alpha, fragment, fb); in blending()
516 blend_factor(c, &df, c->state.blend.dst_alpha, fragment, fb); in blending()
519 fragment->c[0] = in blending()
520 gglMulAddx(fragment->c[0], sf.c[0], gglMulx(fb->c[0], df.c[0])); in blending()
523 if (fragment->c[0] >= (1LU<<fragment->s[0])) in blending()
524 fragment->c[0] = (1<<fragment->s[0])-1; in blending()
525 if (fragment->c[1] >= (1LU<<fragment->s[1])) in blending()
526 fragment->c[1] = (1<<fragment->s[1])-1; in blending()
527 if (fragment->c[2] >= (1LU<<fragment->s[2])) in blending()
528 fragment->c[2] = (1<<fragment->s[2])-1; in blending()
529 if (fragment->c[3] >= (1LU<<fragment->s[3])) in blending()
530 fragment->c[3] = (1<<fragment->s[3])-1; in blending()
700 pixel_t fragment; in scanline() local
712 fragment.s[1] = fragment.s[2] = in scanline()
713 fragment.s[3] = fragment.s[0] = 8; in scanline()
714 fragment.c[1] = r >> (GGL_COLOR_BITS-8); in scanline()
715 fragment.c[2] = g >> (GGL_COLOR_BITS-8); in scanline()
716 fragment.c[3] = b >> (GGL_COLOR_BITS-8); in scanline()
717 fragment.c[0] = a >> (GGL_COLOR_BITS-8); in scanline()
811 uint32_t& Cf = fragment.c[j]; in scanline()
813 uint8_t& sf = fragment.s[j]; in scanline()
859 fragment.c[0] = (int64_t(fragment.c[0]) * cf) >> 15; in scanline()
865 GGLcolor alpha = (uint64_t(fragment.c[0]) * in scanline()
866 ((1<<GGL_COLOR_BITS)-1)) / ((1<<fragment.s[0])-1); in scanline()
913 uint32_t& c = fragment.c[i]; in scanline()
914 uint8_t& s = fragment.s[i]; in scanline()
927 blending( c, &fragment, &fb ); in scanline()
932 &(c->state.buffers.color), c, x, y, &fragment); in scanline()