diff options
author | Nanley Chery <[email protected]> | 2018-06-12 07:16:16 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2018-07-13 08:31:21 -0700 |
commit | 6c9947c3ef3f1ce81fb4409a0970590d5da44184 (patch) | |
tree | b12645400f8e55882ff9acb3de1d1190c27d627b /src/mesa/drivers/dri/i965/intel_mipmap_tree.c | |
parent | 684fa59eb6bf02c267770365e267dc7f14083658 (diff) |
i965/miptree: Delete MIPTREE_CREATE_LINEAR
This enum constant was introduced to enable blit maps with
intel_miptree_create da2880bea05bfc87109477ab026a7f5401fc8f0c. Now that
such maps use the more direct make_surface function which allows you to
specify the tiling directly, the constant is no longer being used.
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index ef658ceb915..6c087c0f662 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -699,8 +699,7 @@ miptree_create(struct brw_context *brw, const GLenum base_format = _mesa_get_format_base_format(format); if ((base_format == GL_DEPTH_COMPONENT || - base_format == GL_DEPTH_STENCIL) && - !(flags & MIPTREE_CREATE_LINEAR)) { + base_format == GL_DEPTH_STENCIL)) { /* Fix up the Z miptree format for how we're splitting out separate * stencil. Gen7 expects there to be no stencil bits in its depth buffer. */ @@ -736,8 +735,7 @@ miptree_create(struct brw_context *brw, if (flags & MIPTREE_CREATE_BUSY) alloc_flags |= BO_ALLOC_BUSY; - isl_tiling_flags_t tiling_flags = (flags & MIPTREE_CREATE_LINEAR) ? - ISL_TILING_LINEAR_BIT : ISL_TILING_ANY_MASK; + isl_tiling_flags_t tiling_flags = ISL_TILING_ANY_MASK; /* TODO: This used to be because there wasn't BLORP to handle Y-tiling. */ if (devinfo->gen < 6) @@ -861,11 +859,6 @@ intel_miptree_create_for_bo(struct brw_context *brw, */ assert(pitch >= 0); - /* The BO already has a tiling format and we shouldn't confuse the lower - * layers by making it try to find a tiling format again. - */ - assert((flags & MIPTREE_CREATE_LINEAR) == 0); - mt = make_surface(brw, target, format, 0, 0, width, height, depth, 1, 1lu << tiling, |