summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/crocus/crocus_resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/crocus/crocus_resource.c')
-rw-r--r--lib/mesa/src/gallium/drivers/crocus/crocus_resource.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mesa/src/gallium/drivers/crocus/crocus_resource.c b/lib/mesa/src/gallium/drivers/crocus/crocus_resource.c
index 7b4d50a66..789a04db1 100644
--- a/lib/mesa/src/gallium/drivers/crocus/crocus_resource.c
+++ b/lib/mesa/src/gallium/drivers/crocus/crocus_resource.c
@@ -189,11 +189,8 @@ crocus_resource_configure_main(const struct crocus_screen *screen,
tiling_flags = 1 << res->mod_info->tiling;
} else {
- if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6) {
- modifier = I915_FORMAT_MOD_X_TILED;
- res->mod_info = isl_drm_modifier_get_info(modifier);
- tiling_flags = 1 << res->mod_info->tiling;
- }
+ if (templ->bind & PIPE_BIND_RENDER_TARGET && devinfo->ver < 6)
+ tiling_flags &= ISL_TILING_LINEAR_BIT | ISL_TILING_X_BIT;
/* Use linear for staging buffers */
if (templ->usage == PIPE_USAGE_STAGING ||
templ->bind & (PIPE_BIND_LINEAR | PIPE_BIND_CURSOR) )