i965/state: Rename brw_upload_state to brw_upload_render_state
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 8 Mar 2015 04:20:03 +0000 (20:20 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 31 Mar 2015 23:40:23 +0000 (16:40 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c

index 2d3de4501d991097dbb2ad0f13fd7f18efee79a8..9b4d8e0869078754b24456f7c636b57f2351e714 100644 (file)
@@ -430,8 +430,9 @@ static void brw_try_draw_prims( struct gl_context *ctx,
 
    intel_prepare_render(brw);
 
-   /* This workaround has to happen outside of brw_upload_state() because it
-    * may flush the batchbuffer for a blit, affecting the state flags.
+   /* This workaround has to happen outside of brw_upload_render_state()
+    * because it may flush the batchbuffer for a blit, affecting the state
+    * flags.
     */
    brw_workaround_depthstencil_alignment(brw, 0);
 
@@ -508,7 +509,7 @@ retry:
        */
       if (brw->state.dirty.brw) {
         brw->no_batch_wrap = true;
-        brw_upload_state(brw);
+        brw_upload_render_state(brw);
       }
 
       brw_emit_prim(brw, &prims[i], brw->primitive);
index 71210b9410c01e8d9a52d89653505f276a7cb3b5..ae5ef1f812aafa650aad73389de73fa120baaed2 100644 (file)
@@ -168,7 +168,7 @@ brw_depthbuffer_format(struct brw_context *brw);
 /***********************************************************************
  * brw_state.c
  */
-void brw_upload_state(struct brw_context *brw);
+void brw_upload_render_state(struct brw_context *brw);
 void brw_clear_dirty_bits(struct brw_context *brw);
 void brw_init_state(struct brw_context *brw);
 void brw_destroy_state(struct brw_context *brw);
index e446de66cece87d7ec44505b14fe5475769c3ae3..542600f1d1c66caa6e4596e2401c4e12c6840d0d 100644 (file)
@@ -579,7 +579,7 @@ brw_upload_programs(struct brw_context *brw)
 /***********************************************************************
  * Emit all state:
  */
-void brw_upload_state(struct brw_context *brw)
+void brw_upload_render_state(struct brw_context *brw)
 {
    struct gl_context *ctx = &brw->ctx;
    struct brw_state_flags *state = &brw->state.dirty;
@@ -686,11 +686,11 @@ void brw_upload_state(struct brw_context *brw)
 
 /**
  * Clear dirty bits to account for the fact that the state emitted by
- * brw_upload_state() has been committed to the hardware.  This is a separate
- * call from brw_upload_state() because it's possible that after the call to
- * brw_upload_state(), we will discover that we've run out of aperture space,
- * and need to rewind the batch buffer to the state it had before the
- * brw_upload_state() call.
+ * brw_upload_render_state() has been committed to the hardware. This is a
+ * separate call from brw_upload_render_state() because it's possible that
+ * after the call to brw_upload_render_state(), we will discover that we've
+ * run out of aperture space, and need to rewind the batch buffer to the state
+ * it had before the brw_upload_render_state() call.
  */
 void
 brw_clear_dirty_bits(struct brw_context *brw)