summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-02-25 09:42:49 +0000
committerKenneth Graunke <[email protected]>2019-03-13 10:54:16 -0700
commit01b224047b0013380a5e8b709eaf2e3cd9976b39 (patch)
tree06f844b236e6b1b2cf0f0c04375621211d337b4e /src/gallium/drivers/iris
parent65e8761474ca8c9c0cce167cb32b720c3cc25a90 (diff)
iris: Use PIPE_BUFFER_STAGING for the query objects
We prefer fast CPU access to read back the query results. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c
index 529c039e537..a1d11755a24 100644
--- a/src/gallium/drivers/iris/iris_context.c
+++ b/src/gallium/drivers/iris/iris_context.c
@@ -198,7 +198,7 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags)
IRIS_RESOURCE_FLAG_DYNAMIC_MEMZONE);
ice->query_buffer_uploader =
- u_upload_create(ctx, 4096, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
+ u_upload_create(ctx, 4096, PIPE_BIND_CUSTOM, PIPE_USAGE_STAGING,
0);
genX_call(devinfo, init_state, ice);