i965: Delete render ring prelude.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Mar 2017 00:12:00 +0000 (16:12 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Mar 2017 07:01:21 +0000 (23:01 -0800)
This was a hook I came up when trying to do the initial performance
counter work years ago.  Nothing's used it for a long time, and the
upcoming performance counter support doesn't want it either.

So, goodbye render ring prelude.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h

index afa061d70dfe02424c032ca2f93a72a11715756b..8e449829c08e563d7e2368006912f3fef3aa6412 100644 (file)
@@ -134,9 +134,6 @@ intel_batchbuffer_require_space(struct brw_context *brw, GLuint sz,
     * brw->batch.ring to UNKNOWN_RING, so we need to set it here at the end.
     */
    brw->batch.ring = ring;
-
-   if (unlikely(prev_ring == UNKNOWN_RING && ring == RENDER_RING))
-      intel_batchbuffer_emit_render_ring_prelude(brw);
 }
 
 static void
@@ -179,12 +176,6 @@ do_batch_dump(struct brw_context *brw)
    }
 }
 
-void
-intel_batchbuffer_emit_render_ring_prelude(struct brw_context *brw)
-{
-   /* Un-used currently */
-}
-
 /**
  * Called when starting a new batch buffer.
  */
index bf7cadfc4d66b472ebf6751ec494a64968a5e08b..01d48048a68c29aa7f0382469e85f89b534facc2 100644 (file)
@@ -38,7 +38,6 @@ extern "C" {
 
 struct intel_batchbuffer;
 
-void intel_batchbuffer_emit_render_ring_prelude(struct brw_context *brw);
 void intel_batchbuffer_init(struct intel_batchbuffer *batch, dri_bufmgr *bufmgr,
                             bool has_llc);
 void intel_batchbuffer_free(struct intel_batchbuffer *batch);