mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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.
This commit is contained in:
parent
011fde4bf2
commit
6642381e75
1 changed files with 5 additions and 1 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue