From: Kenneth Graunke Date: Mon, 23 Apr 2018 04:44:46 +0000 (-0700) Subject: iris: linear staging buffers - fast CPU access... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=063fc7bbb0b125f1b3dc82721b40074aa35d60b5;p=mesa.git iris: linear staging buffers - fast CPU access... --- 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))