From 7922982d4f192475f102fe6fc308c063ab654d00 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 25 Jan 2015 15:12:52 +0800 Subject: ilo: update texture layout for Gen8 --- src/gallium/drivers/ilo/ilo_layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/ilo/ilo_layout.c b/src/gallium/drivers/ilo/ilo_layout.c index 1643e7acf0e..2de7bd276c7 100644 --- a/src/gallium/drivers/ilo/ilo_layout.c +++ b/src/gallium/drivers/ilo/ilo_layout.c @@ -423,7 +423,9 @@ layout_init_alignments(struct ilo_layout *layout, } } } else { - const bool valign_4 = (templ->nr_samples > 1) || + const bool valign_4 = + (templ->nr_samples > 1) || + (ilo_dev_gen(params->dev) >= ILO_GEN(8)) || (ilo_dev_gen(params->dev) >= ILO_GEN(7) && layout->tiling == INTEL_TILING_Y && (templ->bind & PIPE_BIND_RENDER_TARGET)); -- cgit v1.2.3