and drop local copy.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
#include "brw_context.h"
-static inline unsigned
-isl_tiling_to_bufmgr_tiling(enum isl_tiling tiling)
-{
- if (tiling == ISL_TILING_X)
- return I915_TILING_X;
-
- if (tiling == ISL_TILING_Y0)
- return I915_TILING_Y;
-
- /* All other are unknown to buffer allocator. */
- return I915_TILING_NONE;
-}
-
bool
intelEmitCopyBlit(struct brw_context *brw,
GLuint cpp,
if (!bo) {
mt->bo = brw_bo_alloc_tiled(brw->bufmgr, "isl-miptree",
mt->surf.size,
- isl_tiling_to_bufmgr_tiling(
+ isl_tiling_to_i915_tiling(
mt->surf.tiling),
mt->surf.row_pitch, alloc_flags);
if (!mt->bo)