Lines Matching refs:box
8 u_box_1d(unsigned x, unsigned w, struct pipe_box *box) in u_box_1d() argument
10 box->x = x; in u_box_1d()
11 box->y = 0; in u_box_1d()
12 box->z = 0; in u_box_1d()
13 box->width = w; in u_box_1d()
14 box->height = 1; in u_box_1d()
15 box->depth = 1; in u_box_1d()
19 u_box_2d(unsigned x,unsigned y, unsigned w, unsigned h, struct pipe_box *box) in u_box_2d() argument
21 box->x = x; in u_box_2d()
22 box->y = y; in u_box_2d()
23 box->z = 0; in u_box_2d()
24 box->width = w; in u_box_2d()
25 box->height = h; in u_box_2d()
26 box->depth = 1; in u_box_2d()
30 u_box_origin_2d(unsigned w, unsigned h, struct pipe_box *box) in u_box_origin_2d() argument
32 box->x = 0; in u_box_origin_2d()
33 box->y = 0; in u_box_origin_2d()
34 box->z = 0; in u_box_origin_2d()
35 box->width = w; in u_box_origin_2d()
36 box->height = h; in u_box_origin_2d()
37 box->depth = 1; in u_box_origin_2d()
42 unsigned w, unsigned h, struct pipe_box *box) in u_box_2d_zslice() argument
44 box->x = x; in u_box_2d_zslice()
45 box->y = y; in u_box_2d_zslice()
46 box->z = z; in u_box_2d_zslice()
47 box->width = w; in u_box_2d_zslice()
48 box->height = h; in u_box_2d_zslice()
49 box->depth = 1; in u_box_2d_zslice()
55 struct pipe_box *box) in u_box_3d() argument
57 box->x = x; in u_box_3d()
58 box->y = y; in u_box_3d()
59 box->z = z; in u_box_3d()
60 box->width = w; in u_box_3d()
61 box->height = h; in u_box_3d()
62 box->depth = d; in u_box_3d()
75 const struct pipe_box *box, int w, int h) in u_box_clip_2d() argument
82 if (!box->width || !box->height) in u_box_clip_2d()
86 a[0] = box->x; in u_box_clip_2d()
87 a[1] = box->y; in u_box_clip_2d()
88 b[0] = box->x + box->width; in u_box_clip_2d()
89 b[1] = box->y + box->height; in u_box_clip_2d()
117 u_box_volume_3d(const struct pipe_box *box) in u_box_volume_3d() argument
119 return (int64_t)box->width * box->height * box->depth; in u_box_volume_3d()