From 063fc7bbb0b125f1b3dc82721b40074aa35d60b5 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 22 Apr 2018 21:44:46 -0700 Subject: [PATCH] iris: linear staging buffers - fast CPU access... --- src/gallium/drivers/iris/iris_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 3934f823504..2268f5e3b8c 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -221,7 +221,7 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, /* XXX: make sure this doesn't do stupid things for internal textures */ } - if (templ->target == PIPE_BUFFER) + if (templ->target == PIPE_BUFFER || templ->usage == PIPE_USAGE_STAGING) modifier = DRM_FORMAT_MOD_LINEAR; if (templ->bind & (PIPE_BIND_LINEAR | PIPE_BIND_CURSOR)) -- 2.30.2