intel: Support Tile4/64 in surface states

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12132>
This commit is contained in:
Nanley Chery
2018-11-12 13:59:06 -08:00
committed by Marge Bot
parent dd9ae2dc7b
commit 79ad9cda48
3 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -1525,7 +1525,9 @@ blorp_emit_null_surface_state(struct blorp_batch *batch,
.SurfaceArray = surface->surf.dim != ISL_SURF_DIM_3D,
#endif
#if GFX_VER >= 8
#if GFX_VERx10 >= 125
.TileMode = TILE4,
#elif GFX_VER >= 8
.TileMode = YMAJOR,
#else
.TiledSurface = true,
+2 -1
View File
@@ -733,8 +733,9 @@
<field name="Vertical Line Stride" start="11" end="11" type="uint"/>
<field name="Tile Mode" start="12" end="13" type="uint">
<value name="LINEAR" value="0"/>
<value name="TILE64" value="1"/>
<value name="XMAJOR" value="2"/>
<value name="YMAJOR" value="3"/>
<value name="TILE4" value="3"/>
</field>
<field name="Surface Horizontal Alignment" start="14" end="15" type="uint">
<value name="HALIGN 4" value="1"/>
+8 -1
View File
@@ -69,9 +69,14 @@ static const uint8_t isl_encode_valign[] = {
static const uint8_t isl_encode_tiling[] = {
[ISL_TILING_LINEAR] = LINEAR,
[ISL_TILING_X] = XMAJOR,
#if GFX_VERx10 >= 125
[ISL_TILING_4] = TILE4,
[ISL_TILING_64] = TILE64,
#else
[ISL_TILING_Y0] = YMAJOR,
[ISL_TILING_Yf] = YMAJOR,
[ISL_TILING_Ys] = YMAJOR,
#endif
#if GFX_VER <= 11
[ISL_TILING_W] = WMAJOR,
#endif
@@ -961,7 +966,9 @@ isl_genX(null_fill_state)(void *state,
#if GFX_VER >= 7
.SurfaceArray = info->size.depth > 1,
#endif
#if GFX_VER >= 8
#if GFX_VERx10 >= 125
.TileMode = TILE4,
#elif GFX_VER >= 8
.TileMode = YMAJOR,
#else
.TiledSurface = true,