Lines Matching refs:cpp
57 utile_width(int cpp) in utile_width() argument
59 switch (cpp) { in utile_width()
68 DRM_ERROR("unknown cpp: %d\n", cpp); in utile_width()
75 utile_height(int cpp) in utile_height() argument
77 switch (cpp) { in utile_height()
85 DRM_ERROR("unknown cpp: %d\n", cpp); in utile_height()
99 size_is_lt(uint32_t width, uint32_t height, int cpp) in size_is_lt() argument
101 return (width <= 4 * utile_width(cpp) || in size_is_lt()
102 height <= 4 * utile_height(cpp)); in size_is_lt()
161 uint32_t width, uint32_t height, uint8_t cpp) in vc4_check_tex_size() argument
164 uint32_t utile_w = utile_width(cpp); in vc4_check_tex_size()
165 uint32_t utile_h = utile_height(cpp); in vc4_check_tex_size()
198 stride = aligned_width * cpp; in vc4_check_tex_size()
578 uint32_t cpp, tiling_format, utile_w, utile_h; in reloc_tex() local
634 cpp = 4; in reloc_tex()
642 cpp = 2; in reloc_tex()
647 cpp = 1; in reloc_tex()
653 cpp = 8; in reloc_tex()
666 utile_w = utile_width(cpp); in reloc_tex()
667 utile_h = utile_height(cpp); in reloc_tex()
672 if (size_is_lt(width, height, cpp)) in reloc_tex()
679 tiling_format, width, height, cpp)) { in reloc_tex()
694 size_is_lt(level_width, level_height, cpp)) { in reloc_tex()
713 level_size = aligned_width * cpp * aligned_height; in reloc_tex()