diff options
author | Chia-I Wu <[email protected]> | 2013-12-21 20:09:49 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-01-08 18:11:34 +0800 |
commit | 6642381e7513926b847d6bc10bf590e1c0c54859 (patch) | |
tree | 48b16e85c904a70eb6d9496ff38e021a922f72c7 /src/gallium | |
parent | 011fde4bf2b4337cb07ddc1af8b4398fef9b3648 (diff) |
ilo: no layer offsetting on GEN7+
Even though the Ivy Bridge PRM lists some restrictions that require layer
offsetting as the Sandy Bridge PRM does, it seems they are actually lifted.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_gpe_gen6.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c index d4c0398a1f2..d461fe511ab 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c @@ -2478,7 +2478,11 @@ ilo_gpe_init_fb(const struct ilo_dev_info *dev, fb->offset_to_layers = false; - if (num_surfaces > 1) { + /* + * The PRMs list several restrictions when the framebuffer has more than + * one surface, but it seems they are lifted on GEN7+. + */ + if (dev->gen < ILO_GEN(7) && num_surfaces > 1) { const unsigned first_depth = (first->texture->target == PIPE_TEXTURE_3D) ? first->texture->depth0 : |