SET_BLITTER_TILING(brw, false, false); \
ADVANCE_BATCH()
-static int
-blt_pitch(struct intel_mipmap_tree *mt)
-{
- int pitch = mt->surf.row_pitch;
- if (mt->surf.tiling != ISL_TILING_LINEAR)
- pitch /= 4;
- return pitch;
-}
-
bool
intel_miptree_blit_compatible_formats(mesa_format src, mesa_format dst)
{
* for linear surfaces and DWords for tiled surfaces. So the maximum
* pitch is 32k linear and 128k tiled.
*/
- if (blt_pitch(src_mt) >= 32768 || blt_pitch(dst_mt) >= 32768) {
+ if (intel_miptree_blt_pitch(src_mt) >= 32768 ||
+ intel_miptree_blt_pitch(dst_mt) >= 32768) {
perf_debug("Falling back due to >= 32k/128k pitch\n");
return false;
}
struct brw_bo **clear_color_bo,
uint32_t *clear_color_offset);
+
+static inline int
+intel_miptree_blt_pitch(struct intel_mipmap_tree *mt)
+{
+ int pitch = mt->surf.row_pitch;
+ if (mt->surf.tiling != ISL_TILING_LINEAR)
+ pitch /= 4;
+ return pitch;
+}
+
#ifdef __cplusplus
}
#endif