texel[RCOMP] = CHAN_TO_FLOAT(src[0]);
texel[GCOMP] = CHAN_TO_FLOAT(src[1]);
texel[BCOMP] = CHAN_TO_FLOAT(src[2]);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D ALPHA texture, returning 4 GLchans */
texel[RCOMP] =
texel[GCOMP] =
texel[BCOMP] = CHAN_TO_FLOAT(src[0]);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D L_A texture, returning 4 GLchans */
texel[RCOMP] = src[0];
texel[GCOMP] = src[1];
texel[BCOMP] = src[2];
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D RGBA_FLOAT16 texture,
texel[RCOMP] = _mesa_half_to_float(src[0]);
texel[GCOMP] = _mesa_half_to_float(src[1]);
texel[BCOMP] = _mesa_half_to_float(src[2]);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D ALPHA_FLOAT32 texture,
texel[RCOMP] =
texel[GCOMP] =
texel[BCOMP] = src[0];
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D LUMINANCE_FLOAT16 texture,
texel[RCOMP] =
texel[GCOMP] =
texel[BCOMP] = _mesa_half_to_float(src[0]);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
/* Fetch texel from 1D, 2D or 3D LUMINANCE_ALPHA_FLOAT32 texture,
texel[RCOMP] = UBYTE_TO_FLOAT( src[2] );
texel[GCOMP] = UBYTE_TO_FLOAT( src[1] );
texel[BCOMP] = UBYTE_TO_FLOAT( src[0] );
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = UBYTE_TO_FLOAT( src[0] );
texel[GCOMP] = UBYTE_TO_FLOAT( src[1] );
texel[BCOMP] = UBYTE_TO_FLOAT( src[2] );
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = ((s >> 8) & 0xf8) * (1.0F / 248.0F);
texel[GCOMP] = ((s >> 3) & 0xfc) * (1.0F / 252.0F);
texel[BCOMP] = ((s << 3) & 0xf8) * (1.0F / 248.0F);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = ((s >> 8) & 0xf8) * (1.0F / 248.0F);
texel[GCOMP] = ((s >> 3) & 0xfc) * (1.0F / 252.0F);
texel[BCOMP] = ((s << 3) & 0xf8) * (1.0F / 248.0F);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = ((s ) & 0xe0) * (1.0F / 224.0F);
texel[GCOMP] = ((s << 3) & 0xe0) * (1.0F / 224.0F);
texel[BCOMP] = ((s << 6) & 0xc0) * (1.0F / 192.0F);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] =
texel[GCOMP] =
texel[BCOMP] = UBYTE_TO_FLOAT( src[0] );
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = CLAMP(r, 0.0, 1.0);
texel[GCOMP] = CLAMP(g, 0.0, 1.0);
texel[BCOMP] = CLAMP(b, 0.0, 1.0);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}
texel[RCOMP] = CLAMP(r, 0.0, 1.0);
texel[GCOMP] = CLAMP(g, 0.0, 1.0);
texel[BCOMP] = CLAMP(b, 0.0, 1.0);
- texel[ACOMP] = CHAN_MAXF;
+ texel[ACOMP] = 1.0F;
}