iris: Use PIPE_BUFFER_STAGING for the query objects
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Feb 2019 09:42:49 +0000 (09:42 +0000)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Mar 2019 17:54:16 +0000 (10:54 -0700)
We prefer fast CPU access to read back the query results.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_context.c

index 529c039e53728ee5502744dc0c33e3e3f06cd4fa..a1d11755a24110cfc28ffa18e4ee83e722d66a84 100644 (file)
@@ -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);