diff options
author | Rob Clark <[email protected]> | 2016-03-01 10:45:32 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-23 13:39:30 -0400 |
commit | 6a4b052820a4553c536b08176795e3685f4a16e4 (patch) | |
tree | 0e1a2628cc4186b2219f58409db48327ca8b8560 /src/gallium/drivers/freedreno/freedreno_query_hw.c | |
parent | 3d69357da9f297314f760be092fc55956848425e (diff) |
freedreno: prep work for timestamp queries
We need "NULL" state to be a valid bit in the bitmask, because timestamp
queries are not restricted to draw/etc stages (ie. the only commands to
submit may just be to read the timestamp). And just because there are
no draws, isn't a reason to skip the flush and return zero.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query_hw.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_query_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query_hw.c b/src/gallium/drivers/freedreno/freedreno_query_hw.c index 95fff3f108e..141dc8a28fe 100644 --- a/src/gallium/drivers/freedreno/freedreno_query_hw.c +++ b/src/gallium/drivers/freedreno/freedreno_query_hw.c @@ -66,6 +66,7 @@ get_sample(struct fd_context *ctx, struct fd_ringbuffer *ring, if (!ctx->sample_cache[idx]) { ctx->sample_cache[idx] = ctx->sample_providers[idx]->get_sample(ctx, ring); + ctx->needs_flush = true; } fd_hw_sample_reference(ctx, &samp, ctx->sample_cache[idx]); |