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.c120 float dadx = FIXED_ONE / (float)info->dx12; in texcoord_coef()
137 float dady = FIXED_ONE / (float)info->dx12; in texcoord_coef()
302 return util_iround(FIXED_ONE * a); in subpixel_snap()
375 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()
380 bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
381 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
382 bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
383 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
406 fixed_width = MAX2(FIXED_ONE, in try_setup_point()
407 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
[all …]
Dlp_setup_line.c238 return util_iround(FIXED_ONE * a); in subpixel_snap()
301 int fixed_width = util_iround(width) * FIXED_ONE; in try_setup_line()
558 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
559 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
560 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
561 bbox.y1 = (MAX4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
685 plane[i].dcdx *= FIXED_ONE; in try_setup_line()
686 plane[i].dcdy *= FIXED_ONE; in try_setup_line()
Dlp_rast.h53 #define FIXED_ONE (1<<FIXED_ORDER) macro
Dlp_setup_tri.c57 return util_iround(FIXED_ONE * a); in subpixel_snap()
63 return a * (1.0f / FIXED_ONE); in fixed_to_float()
1014 __m128 fixed_one = _mm_set1_ps((float)FIXED_ONE); in calc_fixed_position()
/external/mesa3d/src/mesa/swrast/
Ds_context.h430 #define FIXED_ONE (1 << FIXED_SHIFT) macro
432 #define FIXED_FRAC_MASK (FIXED_ONE - 1)
435 #define FIXED_SCALE ((float) FIXED_ONE)
436 #define FIXED_DBL_SCALE ((double) FIXED_ONE)
442 #define FixedCeil(X) (((X) + FIXED_ONE - FIXED_EPSILON) & FIXED_INT_MASK)
Ds_tritemp.h144 const GLint snapMask = ~((FIXED_ONE / (1 << SUB_PIXEL_BITS)) - 1); /* for x/y coord snapping */ in NAME()
583 fError = fx - fsx - FIXED_ONE; in NAME()
587 fdError = fdxOuter - fdxLeftEdge + FIXED_ONE; in NAME()
842 fError -= FIXED_ONE; in NAME()