freedreno/a4xx: time-elapsed query should be active for clears
authorRob Clark <robdclark@gmail.com>
Sun, 24 Jul 2016 13:32:09 +0000 (09:32 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 24 Jul 2016 13:33:05 +0000 (09:33 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a4xx/fd4_query.c

index baa3787f9d3c5fb5d4d2c50ac55f63d60ab124e6..41e3e6506bdc38c1da2a83983ad9b66fb990892b 100644 (file)
@@ -253,7 +253,7 @@ static const struct fd_hw_sample_provider occlusion_predicate = {
 
 static const struct fd_hw_sample_provider time_elapsed = {
                .query_type = PIPE_QUERY_TIME_ELAPSED,
-               .active = FD_STAGE_DRAW,
+               .active = FD_STAGE_DRAW | FD_STAGE_CLEAR,
                .enable = time_elapsed_enable,
                .get_sample = time_elapsed_get_sample,
                .accumulate_result = time_elapsed_accumulate_result,