gallium/radeon: remove unnecessary test in r600_pc_query_add_result
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 11 Dec 2015 20:55:20 +0000 (15:55 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 15 Dec 2015 16:23:40 +0000 (11:23 -0500)
This test is a left-over of the initial development. It is unneeded and
misleading, so let's get rid of it.

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/gallium/drivers/radeon/r600_perfcounter.c

index a835aee993bd84640000709efe9f3f63ca39845a..fad7bdec40ac61d1934a66164d17151b37583467 100644 (file)
@@ -202,9 +202,6 @@ static void r600_pc_query_add_result(struct r600_common_context *ctx,
        for (i = 0; i < query->num_counters; ++i) {
                struct r600_pc_counter *counter = &query->counters[i];
 
-               if (counter->base == ~0)
-                       continue;
-
                for (j = 0; j < counter->dwords; ++j) {
                        uint32_t value = results[counter->base + j * counter->stride];
                        result->batch[i].u32 += value;