{
unsigned xpot = pot_level_size(sp_sview->xpot, level);
unsigned ypot = pot_level_size(sp_sview->ypot, level);
- unsigned xmax = (xpot - 1) & (TEX_TILE_SIZE - 1); /* MIN2(TEX_TILE_SIZE, xpot) - 1; */
- unsigned ymax = (ypot - 1) & (TEX_TILE_SIZE - 1); /* MIN2(TEX_TILE_SIZE, ypot) - 1; */
+ int xmax = (xpot - 1) & (TEX_TILE_SIZE - 1); /* MIN2(TEX_TILE_SIZE, xpot) - 1; */
+ int ymax = (ypot - 1) & (TEX_TILE_SIZE - 1); /* MIN2(TEX_TILE_SIZE, ypot) - 1; */
union tex_tile_address addr;
int c;
x0 = util_ifloor(u);
if (x0 < 0)
x0 = 0;
- else if (x0 > xpot - 1)
+ else if (x0 > (int) xpot - 1)
x0 = xpot - 1;
y0 = util_ifloor(v);
if (y0 < 0)
y0 = 0;
- else if (y0 > ypot - 1)
+ else if (y0 > (int) ypot - 1)
y0 = ypot - 1;
out = get_texel_2d_no_border(sp_sview, addr, x0, y0);
sp_sview->base.u.tex.first_level,
sp_sview->faces[j], &rgba[0][j]);
- else if (level0 >= texture->last_level)
+ else if (level0 >= (int) texture->last_level)
min_filter(sp_sview, sp_samp, s[j], t[j], p[j], texture->last_level,
sp_sview->faces[j], &rgba[0][j]);
sp_sview->base.u.tex.first_level,
sp_sview->faces[j], &rgba[0][j]);
else {
- float level = sp_sview->base.u.tex.first_level + (int)(lod[j] + 0.5F) ;
+ int level = sp_sview->base.u.tex.first_level + (int)(lod[j] + 0.5F);
level = MIN2(level, (int)texture->last_level);
min_filter(sp_sview, sp_samp, s[j], t[j], p[j],
level, sp_sview->faces[j], &rgba[0][j]);
/* Compute the ellipse's (u,v) bounding box in texture space */
float d = -B*B+4.0f*C*A;
- float box_u = 2.0f / d * sqrt(d*C*F); /* box_u -> half of bbox with */
- float box_v = 2.0f / d * sqrt(A*d*F); /* box_v -> half of bbox height */
+ float box_u = 2.0f / d * sqrtf(d*C*F); /* box_u -> half of bbox with */
+ float box_v = 2.0f / d * sqrtf(A*d*F); /* box_v -> half of bbox height */
float rgba_temp[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
float s_buffer[TGSI_QUAD_SIZE];
assert(level <= resource->last_level);
/* make sure the requested region is in the image bounds */
- assert(box->x + box->width <= u_minify(resource->width0, level));
+ assert(box->x + box->width <= (int) u_minify(resource->width0, level));
if (resource->target == PIPE_TEXTURE_1D_ARRAY) {
- assert(box->y + box->height <= resource->array_size);
+ assert(box->y + box->height <= (int) resource->array_size);
}
else {
- assert(box->y + box->height <= u_minify(resource->height0, level));
+ assert(box->y + box->height <= (int) u_minify(resource->height0, level));
if (resource->target == PIPE_TEXTURE_2D_ARRAY) {
- assert(box->z + box->depth <= resource->array_size);
+ assert(box->z + box->depth <= (int) resource->array_size);
}
else if (resource->target == PIPE_TEXTURE_CUBE) {
assert(box->z < 6);
}
else if (resource->target == PIPE_TEXTURE_CUBE_ARRAY) {
- assert(box->z <= resource->array_size);
+ assert(box->z <= (int) resource->array_size);
}
else {
- assert(box->z + box->depth <= (u_minify(resource->depth0, level)));
+ assert(box->z + box->depth <= (int) u_minify(resource->depth0, level));
}
}