OSDN Git Service

i965: Give the push constants and pull constants unique function names.
authorEric Anholt <eric@anholt.net>
Fri, 22 Apr 2011 01:33:22 +0000 (18:33 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 22:23:21 +0000 (15:23 -0700)
This helps clarify profiling results.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c

index f1a9d86..47b8b51 100644 (file)
@@ -315,7 +315,7 @@ brw_create_constant_surface(struct brw_context *brw,
  * state atom.
  */
 static void
-prepare_wm_constants(struct brw_context *brw)
+prepare_wm_pull_constants(struct brw_context *brw)
 {
    struct gl_context *ctx = &brw->intel.ctx;
    struct intel_context *intel = &brw->intel;
@@ -359,7 +359,7 @@ const struct brw_tracked_state brw_wm_constants = {
       .brw = (BRW_NEW_FRAGMENT_PROGRAM),
       .cache = 0
    },
-   .prepare = prepare_wm_constants,
+   .prepare = prepare_wm_pull_constants,
 };
 
 /**
index d4fca78..c4b57fe 100644 (file)
@@ -35,7 +35,7 @@
 #include "intel_batchbuffer.h"
 
 static void
-prepare_wm_constants(struct brw_context *brw)
+gen6_prepare_wm_push_constants(struct brw_context *brw)
 {
    struct intel_context *intel = &brw->intel;
    struct gl_context *ctx = &intel->ctx;
@@ -91,7 +91,7 @@ const struct brw_tracked_state gen6_wm_constants = {
       .brw   = BRW_NEW_FRAGMENT_PROGRAM,
       .cache = 0,
    },
-   .prepare = prepare_wm_constants,
+   .prepare = gen6_prepare_wm_push_constants,
 };
 
 static void