diff options
author | Chia-I Wu <[email protected]> | 2015-01-25 15:12:52 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-02-12 07:56:12 +0800 |
commit | 7922982d4f192475f102fe6fc308c063ab654d00 (patch) | |
tree | 5d751d584a2f2f1bd4ff6bcbbdd0e8be570d62da /src/gallium/drivers | |
parent | 47dc2ae6e283423bad6286287b870dff63c7954c (diff) |
ilo: update texture layout for Gen8
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |