Home
last modified time | relevance | path

Searched refs:subpixel_snap (Results 1 – 4 of 4) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_line.c236 static inline int subpixel_snap( float a ) in subpixel_snap() function
362 int tx = subpixel_snap(-dy * scale); in try_setup_line()
363 int ty = subpixel_snap(+dx * scale); in try_setup_line()
365 x[0] = subpixel_snap(v1[0][0] - pixel_offset) - tx; in try_setup_line()
366 x[1] = subpixel_snap(v2[0][0] - pixel_offset) - tx; in try_setup_line()
367 x[2] = subpixel_snap(v2[0][0] - pixel_offset) + tx; in try_setup_line()
368 x[3] = subpixel_snap(v1[0][0] - pixel_offset) + tx; in try_setup_line()
370 y[0] = subpixel_snap(v1[0][1] - pixel_offset) - ty; in try_setup_line()
371 y[1] = subpixel_snap(v2[0][1] - pixel_offset) - ty; in try_setup_line()
372 y[2] = subpixel_snap(v2[0][1] - pixel_offset) + ty; in try_setup_line()
[all …]
Dlp_setup_point.c308 subpixel_snap(float a) in subpixel_snap() function
383 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()
385 x0 = subpixel_snap(v0[0][0] - pixel_offset) - fixed_width/2; in try_setup_point()
386 y0 = subpixel_snap(v0[0][1] - pixel_offset) - fixed_width/2; in try_setup_point()
411 const int x0 = subpixel_snap(v0[0][0]); in try_setup_point()
412 const int y0 = subpixel_snap(v0[0][1]) - adj; in try_setup_point()
419 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
Dlp_setup_rect.c47 subpixel_snap(float a) in subpixel_snap() function
266 int x0 = subpixel_snap(v0[0][0] - setup->pixel_offset); in try_rect_cw()
267 int x1 = subpixel_snap(v1[0][0] - setup->pixel_offset); in try_rect_cw()
268 int x2 = subpixel_snap(v2[0][0] - setup->pixel_offset); in try_rect_cw()
269 int y0 = subpixel_snap(v0[0][1] - setup->pixel_offset); in try_rect_cw()
270 int y1 = subpixel_snap(v1[0][1] - setup->pixel_offset); in try_rect_cw()
271 int y2 = subpixel_snap(v2[0][1] - setup->pixel_offset); in try_rect_cw()
Dlp_setup_tri.c57 subpixel_snap(float a) in subpixel_snap() function
1079 position->x[0] = subpixel_snap(v0[0][0] - pixel_offset); in calc_fixed_position()
1080 position->x[1] = subpixel_snap(v1[0][0] - pixel_offset); in calc_fixed_position()
1081 position->x[2] = subpixel_snap(v2[0][0] - pixel_offset); in calc_fixed_position()
1084 position->y[0] = subpixel_snap(v0[0][1] - pixel_offset); in calc_fixed_position()
1085 position->y[1] = subpixel_snap(v1[0][1] - pixel_offset); in calc_fixed_position()
1086 position->y[2] = subpixel_snap(v2[0][1] - pixel_offset); in calc_fixed_position()