Home
last modified time | relevance | path

Searched refs:FIXED_ORDER (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_rast_tri_tmp.h54 mask &= ~BUILD_MASK_LINEAR(((c[j] - 1) >> (int64_t)FIXED_ORDER), in TAG()
55 -plane[j].dcdx >> FIXED_ORDER, in TAG()
56 plane[j].dcdy >> FIXED_ORDER); in TAG()
89 int32_t dcdx = -plane[j].dcdx >> FIXED_ORDER; in TAG()
90 int32_t dcdy = plane[j].dcdy >> FIXED_ORDER; in TAG()
91 const int32_t cox = plane[j].eo >> FIXED_ORDER; in TAG()
94 const int32_t co = (int32_t)(c[j] >> (int64_t)FIXED_ORDER) + cox_s; in TAG()
96 cdiff = ei - cox_s + ((int32_t)((c[j] - 1) >> (int64_t)FIXED_ORDER) - in TAG()
97 (int32_t)(c[j] >> (int64_t)FIXED_ORDER)); in TAG()
216 int32_t dcdx = -plane[j].dcdx >> FIXED_ORDER; in TAG()
[all …]
Dlp_setup_point.c380 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()
408 int_width = fixed_width >> FIXED_ORDER; in try_setup_point()
413 bbox.x0 = x0 >> FIXED_ORDER; in try_setup_point()
414 bbox.y0 = y0 >> FIXED_ORDER; in try_setup_point()
420 bbox.x0 = (x0 >> FIXED_ORDER) - (int_width - 1)/2; in try_setup_point()
421 bbox.y0 = (y0 >> FIXED_ORDER) - (int_width - 1)/2; in try_setup_point()
424 bbox.x0 = ((x0 + FIXED_ONE/2) >> FIXED_ORDER) - int_width/2; in try_setup_point()
[all …]
Dlp_rast.h52 #define FIXED_ORDER 8 macro
53 #define FIXED_ONE (1<<FIXED_ORDER)
62 #define MAX_FIXED_LENGTH (1 << (((FIXED_TYPE_WIDTH/2) - 1) - FIXED_ORDER))
64 #define MAX_FIXED_LENGTH32 (1 << (((32/2) - 1) - FIXED_ORDER))
Dlp_setup_tri.c317 bbox.x0 = MIN3(position->x[0], position->x[1], position->x[2]) >> FIXED_ORDER; in do_triangle_ccw()
318 bbox.x1 = (MAX3(position->x[0], position->x[1], position->x[2]) - 1) >> FIXED_ORDER; in do_triangle_ccw()
321 bbox.y0 = (MIN3(position->y[0], position->y[1], position->y[2]) + adj) >> FIXED_ORDER; in do_triangle_ccw()
322 bbox.y1 = (MAX3(position->y[0], position->y[1], position->y[2]) - 1 + adj) >> FIXED_ORDER; in do_triangle_ccw()
454 dcdx = _mm_slli_epi32(dcdx, FIXED_ORDER); in do_triangle_ccw()
455 dcdy = _mm_slli_epi32(dcdy, FIXED_ORDER); in do_triangle_ccw()
559 dcdx = vec_slli_epi32(dcdx, FIXED_ORDER); in do_triangle_ccw()
560 dcdy = vec_slli_epi32(dcdy, FIXED_ORDER); in do_triangle_ccw()
626 assert((plane[i].dcdx << FIXED_ORDER) >> FIXED_ORDER == plane[i].dcdx); in do_triangle_ccw()
627 assert((plane[i].dcdy << FIXED_ORDER) >> FIXED_ORDER == plane[i].dcdy); in do_triangle_ccw()
[all …]
Dlp_setup_line.c558 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()