gallium/radeon: remove R600_QUERY_HW_FLAG_TIMER
authorMarek Olšák <marek.olsak@amd.com>
Fri, 8 Apr 2016 19:26:23 +0000 (21:26 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 12 Apr 2016 12:29:47 +0000 (14:29 +0200)
not used anymore

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/radeon/r600_perfcounter.c
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeon/r600_query.h

index 3ef2ac5207e5771d5dc9ca4457ab2210c12f0583..0c3b58030b6d9482074c1cff4417625da45ab670 100644 (file)
@@ -64,7 +64,7 @@ void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw,
                num_dw += R600_MAX_FLUSH_CS_DWORDS + R600_MAX_DRAW_CS_DWORDS;
        }
 
-       /* Count in queries_suspend. */
+       /* Count in r600_suspend_queries. */
        num_dw += ctx->b.num_cs_dw_queries_suspend;
 
        /* Count in streamout_end at the end of CS. */
index f3529a1fe0ff0c2979ca23a2f6fadf180420ff7a..9ab17d9e04cb916c8da3695716a002cf548795e9 100644 (file)
@@ -310,7 +310,6 @@ struct pipe_query *r600_create_batch_query(struct pipe_context *ctx,
 
        query->b.b.ops = &batch_query_ops;
        query->b.ops = &batch_query_hw_ops;
-       query->b.flags = R600_QUERY_HW_FLAG_TIMER;
 
        query->num_counters = num_queries;
 
index aa86560bd9d201615f21cb169648e12c38066a05..de6e37b9f623d7440ba128d25a5d2b04b2cf3191 100644 (file)
@@ -369,13 +369,11 @@ static struct pipe_query *r600_query_hw_create(struct r600_common_context *rctx,
                query->result_size = 16;
                query->num_cs_dw_begin = 8;
                query->num_cs_dw_end = 8;
-               query->flags = R600_QUERY_HW_FLAG_TIMER;
                break;
        case PIPE_QUERY_TIMESTAMP:
                query->result_size = 8;
                query->num_cs_dw_end = 8;
-               query->flags = R600_QUERY_HW_FLAG_TIMER |
-                              R600_QUERY_HW_FLAG_NO_START;
+               query->flags = R600_QUERY_HW_FLAG_NO_START;
                break;
        case PIPE_QUERY_PRIMITIVES_EMITTED:
        case PIPE_QUERY_PRIMITIVES_GENERATED:
index 8b2c4e3fe932d058f7bce611812334438b2fbc8b..9f3a917d727081815a989f14bdb79f62f01680fb 100644 (file)
@@ -84,8 +84,7 @@ struct r600_query {
 
 enum {
        R600_QUERY_HW_FLAG_NO_START = (1 << 0),
-       R600_QUERY_HW_FLAG_TIMER = (1 << 1),
-       R600_QUERY_HW_FLAG_PREDICATE = (1 << 2),
+       R600_QUERY_HW_FLAG_PREDICATE = (1 << 1),
 };
 
 struct r600_query_hw_ops {