summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2017-04-27 10:45:05 +0300
committerTopi Pohjolainen <[email protected]>2017-07-20 11:32:21 +0300
commitbec048d9e22edae1663f92b57f2e64e4593a676a (patch)
tree3e00436fe8ee93ecc3645f505c6c2afd9f6a362c
parentf69a2ffe4440779cea76220df9ac2e37c2c74a70 (diff)
i965/miptree: Represent y-tiled stencil copies with isl
Reviewed-by: Jason Ekstrand <[email protected]> Signed-off-by: Topi Pohjolainen <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 39b8b2f3fe6..b586945c1a1 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2953,11 +2953,8 @@ intel_update_r8stencil(struct brw_context *brw,
assert(src->surf.size > 0);
if (!mt->r8stencil_mt) {
- const uint32_t r8stencil_flags =
- MIPTREE_LAYOUT_ACCELERATED_UPLOAD | MIPTREE_LAYOUT_TILING_Y |
- MIPTREE_LAYOUT_DISABLE_AUX;
assert(brw->gen > 6); /* Handle MIPTREE_LAYOUT_GEN6_HIZ_STENCIL */
- mt->r8stencil_mt = intel_miptree_create(
+ mt->r8stencil_mt = make_surface(
brw,
src->target,
MESA_FORMAT_R_UINT8,
@@ -2968,7 +2965,9 @@ intel_update_r8stencil(struct brw_context *brw,
src->surf.logical_level0_px.depth :
src->surf.logical_level0_px.array_len,
src->surf.samples,
- r8stencil_flags);
+ ISL_TILING_Y0_BIT,
+ ISL_SURF_USAGE_TEXTURE_BIT,
+ BO_ALLOC_FOR_RENDER, 0, NULL);
assert(mt->r8stencil_mt);
}