Mesa (master): iris: Use PIPE_BUFFER_STAGING for the query objects
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Mar 13 17:54:41 UTC 2019
Module: Mesa
Branch: master
Commit: 01b224047b0013380a5e8b709eaf2e3cd9976b39
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=01b224047b0013380a5e8b709eaf2e3cd9976b39
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Feb 25 09:42:49 2019 +0000
iris: Use PIPE_BUFFER_STAGING for the query objects
We prefer fast CPU access to read back the query results.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/gallium/drivers/iris/iris_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the mesa-commit
mailing list