Home
last modified time | relevance | path

Searched refs:FIXED_ONE (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_point.c116 float dadx = FIXED_ONE / (float)info->dx12; in texcoord_coef()
133 float dady = FIXED_ONE / (float)info->dx12; in texcoord_coef()
297 return util_iround(FIXED_ONE * a); in subpixel_snap()
315 int fixed_width = MAX2(FIXED_ONE, in try_setup_point()
316 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
338 bbox.x0 = (x0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
339 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
340 bbox.y0 = (y0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
341 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
Dlp_setup_line.c234 return util_iround(FIXED_ONE * a); in subpixel_snap()
294 int fixed_width = util_iround(width) * FIXED_ONE; in try_setup_line()
548 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
549 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
550 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
551 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
653 plane[i].dcdx *= FIXED_ONE; in try_setup_line()
654 plane[i].dcdy *= FIXED_ONE; in try_setup_line()
Dlp_setup_tri.c51 return util_iround(FIXED_ONE * a); in subpixel_snap()
57 return a * (1.0 / FIXED_ONE); in fixed_to_float()
450 plane[i].dcdx *= FIXED_ONE; in do_triangle_ccw()
451 plane[i].dcdy *= FIXED_ONE; in do_triangle_ccw()
Dlp_rast.h51 #define FIXED_ONE (1<<FIXED_ORDER) macro
/external/mesa3d/src/mesa/swrast/
Ds_context.h410 #define FIXED_ONE (1 << FIXED_SHIFT) macro
412 #define FIXED_FRAC_MASK (FIXED_ONE - 1)
415 #define FIXED_SCALE ((float) FIXED_ONE)
416 #define FIXED_DBL_SCALE ((double) FIXED_ONE)
422 #define FixedCeil(X) (((X) + FIXED_ONE - FIXED_EPSILON) & FIXED_INT_MASK)
Ds_tritemp.h139 const GLint snapMask = ~((FIXED_ONE / (1 << SUB_PIXEL_BITS)) - 1); /* for x/y coord snapping */ in NAME()
578 fError = fx - fsx - FIXED_ONE; in NAME()
582 fdError = fdxOuter - fdxLeftEdge + FIXED_ONE; in NAME()
837 fError -= FIXED_ONE; in NAME()