Lines Matching refs:cpp
35 color_depth_for_cpp(int cpp)
37 switch (cpp) {
52 unsigned cpp = fmtl->bpb / 8;
74 cpp * 8, dst->surf.samples,
85 xyblt.ColorDepth = color_depth_for_cpp(cpp);
146 unsigned cpp,
166 isl_get_tile_dims(src->surf.tiling, cpp, &src_tile_w, &src_tile_h);
167 isl_get_tile_dims(dst->surf.tiling, cpp, &dst_tile_w, &dst_tile_h);
179 if (cpp > 4) {
180 if (cpp % 4 == 2) {
181 dst_x *= cpp / 2;
182 dst_x2 *= cpp / 2;
183 src_x *= cpp / 2;
184 cpp = 2;
186 assert(cpp % 4 == 0);
187 dst_x *= cpp / 4;
188 dst_x2 *= cpp / 4;
189 src_x *= cpp / 4;
190 cpp = 4;
197 if (src_pitch % 4 != 0 || src_offset % cpp != 0 ||
198 dst_pitch % 4 != 0 || dst_offset % cpp != 0)
210 assert(cpp <= 4);
217 xyblt.ColorDepth = color_depth_for_cpp(cpp);
218 xyblt._32bppByteMask = cpp == 4 ? 0x3 : 0x1;