From: "Xiong, James" <james.xi...@intel.com> UMDs such as modesetting can use legacy ADDFD which doesn't accept Y-tiled buffer, ths patch sets the default tiling mode to X-tiled for backward compatibility.
Signed-off-by: Xiong, James <james.xi...@intel.com> --- src/gallium/drivers/iris/iris_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index d0a473f..56c9590 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -558,7 +558,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, uint64_t modifier = select_best_modifier(devinfo, modifiers, modifiers_count); - isl_tiling_flags_t tiling_flags = ISL_TILING_ANY_MASK; + /* Historically, X-tiled was the default */ + isl_tiling_flags_t tiling_flags = ISL_TILING_X_BIT; if (modifier != DRM_FORMAT_MOD_INVALID) { res->mod_info = isl_drm_modifier_get_info(modifier); -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev