i965: Re-sync outdated comments about Gen6+ push constants.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 8 Jan 2012 04:31:55 +0000 (20:31 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2012 05:45:10 +0000 (21:45 -0800)
In f3e9ccb3b, I renamed gen6_upload_wm_constants to
gen6_upload_wm_push_constants, but neglected to update this comment.

I don't think there ever was a gen7_prepare_wm_constants function; it
was probably a search and replace error.  Of course, "prepare" functions
died a while back as well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c

index c04f2342c40808d8929b875b466177ae5a1cd3f8..0547eb8a0b3628353806574878aee88e8d619e9c 100644 (file)
@@ -118,7 +118,7 @@ upload_wm_state(struct brw_context *brw)
                GEN6_CONSTANT_BUFFER_0_ENABLE |
                (5 - 2));
       /* Pointer to the WM constant buffer.  Covered by the set of
-       * state flags from gen6_upload_wm_constants
+       * state flags from gen6_upload_wm_push_constants.
        */
       OUT_BATCH(brw->wm.push_const_offset +
                ALIGN(brw->wm.prog_data->nr_params,
index 260d2e221f0e8a54082eca5b26b13c9df9bd6816..504599149cbb0f12e2e32955179a363b4b0abc59 100644 (file)
@@ -133,7 +133,7 @@ upload_ps_state(struct brw_context *brw)
                      brw->wm.prog_data->dispatch_width) / 8);
       OUT_BATCH(0);
       /* Pointer to the WM constant buffer.  Covered by the set of
-       * state flags from gen7_prepare_wm_constants
+       * state flags from gen6_upload_wm_push_constants.
        */
       OUT_BATCH(brw->wm.push_const_offset);
       OUT_BATCH(0);