mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
isl/state: Emit no-op mip tail setup on SKL
This hasn't ever been a problem in the past but it is recommended by the
hardware docs.
Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 96706bad5f)
This commit is contained in:
parent
a49f97fae3
commit
913e9e14f0
1 changed files with 8 additions and 0 deletions
|
|
@ -292,6 +292,14 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state,
|
|||
s.MIPCountLOD = MAX(info->view->levels, 1) - 1;
|
||||
}
|
||||
|
||||
#if GEN_GEN >= 9
|
||||
/* We don't use miptails yet. The PRM recommends that you set "Mip Tail
|
||||
* Start LOD" to 15 to prevent the hardware from trying to use them.
|
||||
*/
|
||||
s.TiledResourceMode = NONE;
|
||||
s.MipTailStartLOD = 15;
|
||||
#endif
|
||||
|
||||
const struct isl_extent3d image_align = get_image_alignment(info->surf);
|
||||
s.SurfaceVerticalAlignment = isl_to_gen_valign[image_align.height];
|
||||
s.SurfaceHorizontalAlignment = isl_to_gen_halign[image_align.width];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue