[Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers
Pohjolainen, Topi
topi.pohjolainen at intel.com
Thu May 28 23:47:55 PDT 2015
On Thu, May 28, 2015 at 10:21:33AM -0700, Ben Widawsky wrote:
> Just like the previous patch, but for the GEN9 constraints.
>
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
> ---
> src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index a1ac0cf..89030aa 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -655,6 +655,11 @@ intel_miptree_create(struct brw_context *brw,
>
> assert((layout_flags & MIPTREE_LAYOUT_DISABLE_AUX) == 0);
> assert((layout_flags & MIPTREE_LAYOUT_FOR_BO) == 0);
> +
> + if (brw->gen >= 9 && num_samples > 1)
> + layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
> +
> +
Extra newline.
> mt = intel_miptree_create_layout(brw, target, format,
> first_level, last_level, width0,
> height0, depth0, num_samples,
> --
> 2.4.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list