Revert "freedreno/a4xx: better occlusion/sample counting"
authorRob Clark <robclark@freedesktop.org>
Tue, 12 Apr 2016 20:06:17 +0000 (16:06 -0400)
committerRob Clark <robclark@freedesktop.org>
Wed, 13 Apr 2016 18:16:40 +0000 (14:16 -0400)
This reverts commit 62fa868728c729152af0d7cecd1d3e47e831cb7d.

dEQP-GLES3.functional.occlusion_query.* was unhappy about that change.
Still not really sure *what* the other slots in the sample results
buffer are.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a4xx/fd4_query.c

index 77e203f6c567ef1ed917d86851a04fb6754cbc96..69decbcb251f41a838cf846969f83b9ca66a9695 100644 (file)
@@ -82,12 +82,7 @@ static uint64_t
 count_samples(const struct fd_rb_samp_ctrs *start,
                const struct fd_rb_samp_ctrs *end)
 {
-       uint64_t n = 0;
-
-       for (unsigned i = 0; i < 16; i += 4)
-               n += end->ctr[i] - start->ctr[i];
-
-       return n / 2;
+       return end->ctr[0] - start->ctr[0];
 }
 
 static void