mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
intel/isl: set vertical surface alignment on null surfaces
Just following the spec. Somewhat unclear whether this applies to NULL surfaces. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
ff1a5aadbf
commit
12bf1308c4
1 changed files with 13 additions and 0 deletions
|
|
@ -803,6 +803,19 @@ isl_genX(null_fill_state)(void *state, struct isl_extent3d size)
|
|||
#else
|
||||
.TiledSurface = true,
|
||||
.TileWalk = TILEWALK_YMAJOR,
|
||||
#endif
|
||||
#if GEN_GEN == 7
|
||||
/* According to PRMs: "Volume 4 Part 1: Subsystem and Cores – Shared
|
||||
* Functions"
|
||||
*
|
||||
* RENDER_SURFACE_STATE::Surface Vertical Alignment
|
||||
*
|
||||
* "This field must be set to VALIGN_4 for all tiled Y Render Target
|
||||
* surfaces."
|
||||
*
|
||||
* Affect IVB, HSW.
|
||||
*/
|
||||
.SurfaceVerticalAlignment = VALIGN_4,
|
||||
#endif
|
||||
.Width = size.width - 1,
|
||||
.Height = size.height - 1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue