Home | History | Annotate | Download | only in swrast

Lines Matching full:info

271             struct affine_info *info)
326 + (sample[RCOMP] + 1) * info->er) >> (FIXED_SHIFT + 8); \
328 + (sample[GCOMP] + 1) * info->eg) >> (FIXED_SHIFT + 8); \
330 + (sample[BCOMP] + 1) * info->eb) >> (FIXED_SHIFT + 8); \
364 GLint s = FixedToInt(span->intTex[0]) & info->smask; \
365 GLint t = FixedToInt(span->intTex[1]) & info->tmask; \
366 GLint pos = (t << info->twidth_log2) + s; \
367 const GLchan *tex00 = info->texture + COMPS * pos; \
381 const GLint s = FixedToInt(span->intTex[0]) & info->smask; \
382 const GLint t = FixedToInt(span->intTex[1]) & info->tmask; \
385 const GLint pos = (t << info->twidth_log2) + s; \
386 const GLchan *tex00 = info->texture + COMPS * pos; \
387 const GLchan *tex10 = tex00 + info->tbytesline; \
390 if (t == info->tmask) { \
391 tex10 -= info->tsize; \
392 tex11 -= info->tsize; \
394 if (s == info->smask) { \
395 tex01 -= info->tbytesline; \
396 tex11 -= info->tbytesline; \
417 switch (info->filter) {
419 switch (info->format) {
421 switch (info->envmode) {
441 switch(info->envmode) {
468 switch (info->format) {
470 switch (info->envmode) {
490 switch (info->envmode) {
540 struct affine_info info; \
550 info.texture = (const GLchan *) swImg->Map; \
551 info.twidth_log2 = texImg->WidthLog2; \
552 info.smask = texImg->Width - 1; \
553 info.tmask = texImg->Height - 1; \
554 info.format = texImg->TexFormat; \
555 info.filter = obj->Sampler.MinFilter; \
556 info.envmode = unit->EnvMode; \
557 info.er = 0; \
558 info.eg = 0; \
559 info.eb = 0; \
562 if (info.envmode == GL_BLEND) { \
564 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
565 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
566 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
567 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
569 if (!info.texture) { \
574 switch (info.format) { \
576 info.tbytesline = texImg->Width * 3; \
579 info.tbytesline = texImg->Width * 4; \
585 info.tsize = texImg->Height * info.tbytesline;
587 #define RENDER_SPAN( span ) affine_span(ctx, &span, &info);
608 struct persp_info *info)
623 GLint s = IFLOOR(s_tmp) & info->smask; \
624 GLint t = IFLOOR(t_tmp) & info->tmask; \
625 GLint pos = (t << info->twidth_log2) + s; \
626 const GLchan *tex00 = info->texture + COMP * pos; \
646 const GLint s = FixedToInt(FixedFloor(s_fix)) & info->smask; \
647 const GLint t = FixedToInt(FixedFloor(t_fix)) & info->tmask; \
650 const GLint pos = (t << info->twidth_log2) + s; \
651 const GLchan *tex00 = info->texture + COMP * pos; \
652 const GLchan *tex10 = tex00 + info->tbytesline; \
655 if (t == info->tmask) { \
656 tex10 -= info->tsize; \
657 tex11 -= info->tsize; \
659 if (s == info->smask) { \
660 tex01 -= info->tbytesline; \
661 tex11 -= info->tbytesline; \
681 tex_coord[0] = span->attrStart[FRAG_ATTRIB_TEX0][0] * (info->smask + 1);
682 tex_step[0] = span->attrStepX[FRAG_ATTRIB_TEX0][0] * (info->smask + 1);
683 tex_coord[1] = span->attrStart[FRAG_ATTRIB_TEX0][1] * (info->tmask + 1);
684 tex_step[1] = span->attrStepX[FRAG_ATTRIB_TEX0][1] * (info->tmask + 1);
689 switch (info->filter) {
691 switch (info->format) {
693 switch (info->envmode) {
713 switch(info->envmode) {
738 switch (info->format) {
740 switch (info->envmode) {
760 switch (info->envmode) {
809 struct persp_info info; \
817 info.texture = (const GLchan *) swImg->Map; \
818 info.twidth_log2 = texImg->WidthLog2; \
819 info.smask = texImg->Width - 1; \
820 info.tmask = texImg->Height - 1; \
821 info.format = texImg->TexFormat; \
822 info.filter = obj->Sampler.MinFilter; \
823 info.envmode = unit->EnvMode; \
824 info.er = 0; \
825 info.eg = 0; \
826 info.eb = 0; \
828 if (info.envmode == GL_BLEND) { \
830 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
831 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
832 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
833 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
835 if (!info.texture) { \
840 switch (info.format) { \
842 info.tbytesline = texImg->Width * 3; \
845 info.tbytesline = texImg->Width * 4; \
851 info.tsize = texImg->Height * info.tbytesline;
856 fast_persp_span(ctx, &span, &info);