summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_query.c
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2019-01-11 15:37:15 -0800
committerGert Wollny <[email protected]>2019-02-15 11:19:04 +0100
commit1d294ad264dc85e716bec5b6d0286cc3e10ce224 (patch)
tree1477788c4d9158221324df4e2961e9ceb43dc515 /src/gallium/drivers/virgl/virgl_query.c
parentacc52fff2061dada900f088bc82ce6c9bf747ea6 (diff)
virgl: add ability to do finer grain dirty tracking
There are levels to cleanliness. Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_query.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_query.c b/src/gallium/drivers/virgl/virgl_query.c
index 23e24c53b02..0085cc5e7a3 100644
--- a/src/gallium/drivers/virgl/virgl_query.c
+++ b/src/gallium/drivers/virgl/virgl_query.c
@@ -113,7 +113,7 @@ static struct pipe_query *virgl_create_query(struct pipe_context *ctx,
query->type = pipe_to_virgl_query(query_type);
query->index = index;
query->handle = handle;
- query->buf->clean = FALSE;
+ query->buf->clean[0] = FALSE;
virgl_encoder_create_query(vctx, handle, query->type, index, query->buf, 0);
return (struct pipe_query *)query;
@@ -137,7 +137,7 @@ static boolean virgl_begin_query(struct pipe_context *ctx,
struct virgl_context *vctx = virgl_context(ctx);
struct virgl_query *query = virgl_query(q);
- query->buf->clean = FALSE;
+ query->buf->clean[0] = FALSE;
virgl_encoder_begin_query(vctx, query->handle);
return true;
}