Home
last modified time | relevance | path

Searched refs:FIXED_ONE (Results 1 – 7 of 7) 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()
310 return util_iround(FIXED_ONE * a); in subpixel_snap()
386 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()
391 bbox.x0 = (x0 + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
392 bbox.x1 = (x0 + fixed_width + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_point()
393 bbox.y0 = (y0 + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
394 bbox.y1 = (y0 + fixed_width + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_point()
417 fixed_width = MAX2(FIXED_ONE, in try_setup_point()
418 (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()
303 int fixed_width = util_iround(width) * FIXED_ONE; in try_setup_line()
564 bbox.x0 = (MIN4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
565 bbox.x1 = (MAX4(x[0], x[1], x[2], x[3]) + (FIXED_ONE-1)) >> FIXED_ORDER; in try_setup_line()
566 bbox.y0 = (MIN4(y[0], y[1], y[2], y[3]) + (FIXED_ONE-1) + adj) >> FIXED_ORDER; in try_setup_line()
567 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_scene.c632 scene->fixed_sample_pos[i][0] = util_iround(lp_sample_pos_4x[i][0] * FIXED_ONE); in lp_scene_begin_binning()
633 scene->fixed_sample_pos[i][1] = util_iround(lp_sample_pos_4x[i][1] * FIXED_ONE); in lp_scene_begin_binning()
Dlp_setup_tri.c59 return util_iround(FIXED_ONE * a); in subpixel_snap()
1041 __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.h145 const GLint snapMask = ~((FIXED_ONE / (1 << SUB_PIXEL_BITS)) - 1); /* for x/y coord snapping */ in NAME()
584 fError = fx - fsx - FIXED_ONE; in NAME()
588 fdError = fdxOuter - fdxLeftEdge + FIXED_ONE; in NAME()
843 fError -= FIXED_ONE; in NAME()