#include "util/u_pwr8.h"
#endif
+#if !defined(PIPE_ARCH_SSE)
+
static inline int
subpixel_snap(float a)
{
return util_iround(FIXED_ONE * a);
}
-static inline float
-fixed_to_float(int a)
-{
- return a * (1.0f / FIXED_ONE);
-}
-
+#endif
/* Position and area in fixed point coordinates */
struct fixed_position {
unsigned plane_sz = nr_planes * sizeof(struct lp_rast_plane);
struct lp_rast_triangle *tri;
+ STATIC_ASSERT(sizeof(struct lp_rast_plane) % 8 == 0);
+
*tri_size = (sizeof(struct lp_rast_triangle) +
3 * input_array_sz +
plane_sz);
*/
if (nr_planes > 3) {
/* why not just use draw_regions */
- struct u_rect *scissor = &setup->scissors[viewport_index];
+ const struct u_rect *scissor = &setup->scissors[viewport_index];
struct lp_rast_plane *plane_s = &plane[3];
boolean s_planes[4];
scissor_planes_needed(s_planes, &bbox, scissor);