llvmpipe: remove lp_rast_triangle::min/max fields
These values aren't needed outside the do_triangle_ccw() function.
This commit is contained in:
parent
47fee14687
commit
adb48d5350
|
@ -97,12 +97,6 @@ struct lp_rast_shader_inputs {
|
||||||
* Objects of this type are put into the setup_context::data buffer.
|
* Objects of this type are put into the setup_context::data buffer.
|
||||||
*/
|
*/
|
||||||
struct lp_rast_triangle {
|
struct lp_rast_triangle {
|
||||||
/* bounding box of tri (in pixels) */
|
|
||||||
int minx;
|
|
||||||
int maxx;
|
|
||||||
int miny;
|
|
||||||
int maxy;
|
|
||||||
|
|
||||||
/* one-pixel sized trivial accept offsets for each plane */
|
/* one-pixel sized trivial accept offsets for each plane */
|
||||||
int ei1;
|
int ei1;
|
||||||
int ei2;
|
int ei2;
|
||||||
|
|
|
@ -288,13 +288,13 @@ do_triangle_ccw(struct setup_context *setup,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bounding rectangle (in pixels) */
|
/* Bounding rectangle (in pixels) */
|
||||||
tri->minx = (MIN3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
minx = (MIN3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
tri->maxx = (MAX3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
maxx = (MAX3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
tri->miny = (MIN3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
miny = (MIN3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
tri->maxy = (MAX3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
maxy = (MAX3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER;
|
||||||
|
|
||||||
if (tri->miny == tri->maxy ||
|
if (miny == maxy ||
|
||||||
tri->minx == tri->maxx) {
|
minx == maxx) {
|
||||||
lp_scene_putback_data( scene, sizeof *tri );
|
lp_scene_putback_data( scene, sizeof *tri );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -384,10 +384,10 @@ do_triangle_ccw(struct setup_context *setup,
|
||||||
|
|
||||||
/* Convert to tile coordinates:
|
/* Convert to tile coordinates:
|
||||||
*/
|
*/
|
||||||
minx = tri->minx / TILE_SIZE;
|
minx = minx / TILE_SIZE;
|
||||||
miny = tri->miny / TILE_SIZE;
|
miny = miny / TILE_SIZE;
|
||||||
maxx = tri->maxx / TILE_SIZE;
|
maxx = maxx / TILE_SIZE;
|
||||||
maxy = tri->maxy / TILE_SIZE;
|
maxy = maxy / TILE_SIZE;
|
||||||
|
|
||||||
/* Clamp maxx, maxy to framebuffer size
|
/* Clamp maxx, maxy to framebuffer size
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue