i965: Always enable VF statistics
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 13 Nov 2014 02:49:16 +0000 (18:49 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Thu, 13 Nov 2014 18:48:24 +0000 (10:48 -0800)
Every other unit in the geometry pipeline automatically enables
statistics gathering. This part of the pipe has been controlled by the
DEBUG_STATS variable, but this is asymmetric. This dates back to the
original implementation, and I am not sure if there is a reason for it.

I need access to these stats to implement ARB_pipeline_statistics_query.

Eric wrote it, and Ken touched it last. Do you have any opposition?

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86145
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_misc_state.c

index 99fcddc6a2181de7b6a9d87c4d658dffbb523833..2c408148ad801570c60f7ec4baf492f5bea2e8b3 100644 (file)
@@ -929,8 +929,7 @@ brw_upload_invariant_state(struct brw_context *brw)
    const uint32_t _3DSTATE_VF_STATISTICS =
       is_965 ? GEN4_3DSTATE_VF_STATISTICS : GM45_3DSTATE_VF_STATISTICS;
    BEGIN_BATCH(1);
-   OUT_BATCH(_3DSTATE_VF_STATISTICS << 16 |
-            (unlikely(INTEL_DEBUG & DEBUG_STATS) ? 1 : 0));
+   OUT_BATCH(_3DSTATE_VF_STATISTICS << 16 | 1);
    ADVANCE_BATCH();
 }