From: Jason Ekstrand Date: Wed, 19 Jul 2017 00:00:39 +0000 (-0700) Subject: i965/miptree: Stop setting FOR_SCANOUT for renderbuffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c09672ad47037b7baea1c31eccfb9e44d782137;p=mesa.git i965/miptree: Stop setting FOR_SCANOUT for renderbuffers Nothing created through intel_miptree_create_for_renderbuffer will ever be exposed externally so there's no need to set FOR_SCANOUT. Reviewed-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 3ab86e31f4d..f05730181e3 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1058,8 +1058,7 @@ intel_miptree_create_for_renderbuffer(struct brw_context *brw, uint32_t depth = 1; GLenum target = num_samples > 1 ? GL_TEXTURE_2D_MULTISAMPLE : GL_TEXTURE_2D; const uint32_t layout_flags = MIPTREE_LAYOUT_ACCELERATED_UPLOAD | - MIPTREE_LAYOUT_TILING_ANY | - MIPTREE_LAYOUT_FOR_SCANOUT; + MIPTREE_LAYOUT_TILING_ANY; mt = intel_miptree_create(brw, target, format, 0, 0, width, height, depth, num_samples,