Lines Matching refs:cpp

36 v3d_utile_width(int cpp)
38 switch (cpp) {
48 unreachable("unknown cpp");
54 v3d_utile_height(int cpp)
56 switch (cpp) {
66 unreachable("unknown cpp");
77 v3d_get_utile_pixel_offset(uint32_t cpp, uint32_t x, uint32_t y)
79 uint32_t utile_w = v3d_utile_width(cpp);
81 assert(x < utile_w && y < v3d_utile_height(cpp));
83 return x * cpp + y * utile_w * cpp;
92 v3d_get_lt_pixel_offset(uint32_t cpp, uint32_t image_h, uint32_t x, uint32_t y)
94 uint32_t utile_w = v3d_utile_width(cpp);
95 uint32_t utile_h = v3d_utile_height(cpp);
102 v3d_get_utile_pixel_offset(cpp,
114 v3d_get_ublinear_pixel_offset(uint32_t cpp, uint32_t x, uint32_t y,
117 uint32_t utile_w = v3d_utile_width(cpp);
118 uint32_t utile_h = v3d_utile_height(cpp);
128 + v3d_get_utile_pixel_offset(cpp,
134 v3d_get_ublinear_2_column_pixel_offset(uint32_t cpp, uint32_t image_h,
137 return v3d_get_ublinear_pixel_offset(cpp, x, y, 2);
141 v3d_get_ublinear_1_column_pixel_offset(uint32_t cpp, uint32_t image_h,
144 return v3d_get_ublinear_pixel_offset(cpp, x, y, 1);
155 v3d_get_uif_pixel_offset(uint32_t cpp, uint32_t image_h, uint32_t x, uint32_t y,
158 uint32_t utile_w = v3d_utile_width(cpp);
159 uint32_t utile_h = v3d_utile_height(cpp);
191 v3d_get_utile_pixel_offset(cpp,
199 v3d_get_uif_xor_pixel_offset(uint32_t cpp, uint32_t image_h,
202 return v3d_get_uif_pixel_offset(cpp, image_h, x, y, true);
206 v3d_get_uif_no_xor_pixel_offset(uint32_t cpp, uint32_t image_h,
209 return v3d_get_uif_pixel_offset(cpp, image_h, x, y, false);
219 int cpp, uint32_t image_h,
221 uint32_t (*get_pixel_offset)(uint32_t cpp,
230 uint32_t pixel_offset = get_pixel_offset(cpp, image_h,
241 memcpy(cpu_row + x * cpp,
243 cpp);
246 cpu_row + x * cpp,
247 cpp);
259 int cpp, uint32_t image_h,
261 uint32_t (*get_pixel_offset)(uint32_t cpp,
266 uint32_t utile_w = v3d_utile_width(cpp);
267 uint32_t utile_h = v3d_utile_height(cpp);
268 uint32_t utile_gpu_stride = utile_w * cpp;
284 get_pixel_offset(cpp, image_h, x, y));
285 void *utile_cpu = cpu_row + (x - box->x) * cpp;
304 cpp, image_h,
344 (partial_boxes[i].x - x1) * cpp);
348 cpp, image_h,
357 int cpp, uint32_t image_h,
359 uint32_t (*get_pixel_offset)(uint32_t cpp,
364 switch (cpp) {
407 int cpp,
416 cpp, image_h, box,
423 cpp, image_h, box,
430 cpp, image_h, box,
437 cpp, image_h, box,
444 cpp, image_h, box,
461 enum v3d_tiling_mode tiling_format, int cpp,
468 cpp,
481 enum v3d_tiling_mode tiling_format, int cpp,
488 cpp,