} anv_tile_info_table[] = {
[ISL_TILING_LINEAR] = { 64 },
[ISL_TILING_X] = { 4096 },
- [ISL_TILING_Y] = { 4096 },
+ [ISL_TILING_Y0] = { 4096 },
[ISL_TILING_Yf] = { 4096 },
[ISL_TILING_Ys] = { 4096 },
[ISL_TILING_W] = { 4096 },
if (unlikely(anv_info->vk_info->format == VK_FORMAT_S8_UINT)) {
return ISL_TILING_W;
} else {
- return ISL_TILING_Y;
+ return ISL_TILING_Y0;
}
default:
assert(!"bad VKImageTiling");
* Tiled Surface is False."
*/
.TiledSurface = surface->tiling != ISL_TILING_LINEAR,
- .TileWalk = surface->tiling == ISL_TILING_Y ?
+ .TileWalk = surface->tiling == ISL_TILING_Y0 ?
TILEWALK_YMAJOR : TILEWALK_XMAJOR,
.VerticalLineStride = 0,
static const uint8_t isl_to_gen_tiling[] = {
[ISL_TILING_LINEAR] = LINEAR,
[ISL_TILING_X] = XMAJOR,
- [ISL_TILING_Y] = YMAJOR,
+ [ISL_TILING_Y0] = YMAJOR,
[ISL_TILING_Yf] = YMAJOR,
[ISL_TILING_Ys] = YMAJOR,
[ISL_TILING_W] = WMAJOR,
static const struct isl_extent2d legacy_extents[] = {
[ISL_TILING_LINEAR] = { 1, 1 },
[ISL_TILING_X] = { 512, 8 },
- [ISL_TILING_Y] = { 128, 32 },
+ [ISL_TILING_Y0] = { 128, 32 },
[ISL_TILING_W] = { 128, 32 },
};
switch (tiling) {
case ISL_TILING_LINEAR:
case ISL_TILING_X:
- case ISL_TILING_Y:
+ case ISL_TILING_Y0:
case ISL_TILING_W:
*e = legacy_extents[tiling];
return;
/**
* WARNING: These values differ from the hardware enum values, which are
* unstable across hardware generations.
+ *
+ * Note that legacy Y tiling is ISL_TILING_Y0 instead of ISL_TILING_Y, to
+ * clearly distinguish it from Yf and Ys.
*/
enum isl_tiling {
ISL_TILING_LINEAR,
ISL_TILING_W,
ISL_TILING_X,
- ISL_TILING_Y, /**< Legacy Y tiling */
+ ISL_TILING_Y0, /**< Legacy Y tiling */
ISL_TILING_Yf,
ISL_TILING_Ys,
};