i965g: rename brw_constant_buffer to brw_curbe_buffer
authorKeith Whitwell <keithw@vmware.com>
Mon, 2 Nov 2009 08:48:26 +0000 (08:48 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 2 Nov 2009 08:48:26 +0000 (08:48 +0000)
Now that there are real constant buffers, try to reduce naming confusion.

src/gallium/drivers/i965/brw_curbe.c
src/gallium/drivers/i965/brw_state.h
src/gallium/drivers/i965/brw_state_upload.c

index 3dd08f6eeb416cd507ba0936b93b38d609b24673..ed5b250f8281c3816d91f820e113436dafed3023 100644 (file)
@@ -160,7 +160,7 @@ static GLfloat fixed_plane[6][4] = {
  * cache mechanism, but maybe would benefit from a comparison against
  * the current uploaded set of constants.
  */
-static int prepare_constant_buffer(struct brw_context *brw)
+static int prepare_curbe_buffer(struct brw_context *brw)
 {
    const GLuint sz = brw->curbe.total_size;
    const GLuint bufsz = sz * 16 * sizeof(GLfloat);
@@ -312,7 +312,7 @@ static int prepare_constant_buffer(struct brw_context *brw)
    return 0;
 }
 
-static int emit_constant_buffer(struct brw_context *brw)
+static int emit_curbe_buffer(struct brw_context *brw)
 {
    GLuint sz = brw->curbe.total_size;
 
@@ -330,7 +330,7 @@ static int emit_constant_buffer(struct brw_context *brw)
    return 0;
 }
 
-const struct brw_tracked_state brw_constant_buffer = {
+const struct brw_tracked_state brw_curbe_buffer = {
    .dirty = {
       .mesa = (PIPE_NEW_FRAGMENT_CONSTANTS |
               PIPE_NEW_VERTEX_CONSTANTS |
@@ -343,7 +343,7 @@ const struct brw_tracked_state brw_constant_buffer = {
               BRW_NEW_BATCH),
       .cache = (CACHE_NEW_WM_PROG) 
    },
-   .prepare = prepare_constant_buffer,
-   .emit = emit_constant_buffer,
+   .prepare = prepare_curbe_buffer,
+   .emit = emit_curbe_buffer,
 };
 
index b47b04fd46ff56c872565f1449326867a9ef5e58..3b9151ab2f9a9a85270d31d1a35ccb441fbe8be2 100644 (file)
@@ -55,7 +55,7 @@ const struct brw_tracked_state brw_cc_vp;
 const struct brw_tracked_state brw_check_fallback;
 const struct brw_tracked_state brw_clip_prog;
 const struct brw_tracked_state brw_clip_unit;
-const struct brw_tracked_state brw_constant_buffer;
+const struct brw_tracked_state brw_curbe_buffer;
 const struct brw_tracked_state brw_curbe_offsets;
 const struct brw_tracked_state brw_invarient_state;
 const struct brw_tracked_state brw_gs_prog;
index eff3a40a464a0d9053bd7b7277f7047d23dc0f93..4132c6ac69b7da1044b9859044c17f2d9a9a465d 100644 (file)
 #include "brw_batchbuffer.h"
 #include "brw_debug.h"
 
-/* This is used to initialize brw->state.atoms[].  We could use this
- * list directly except for a single atom, brw_constant_buffer, which
- * has a .dirty value which changes according to the parameters of the
- * current fragment and vertex programs, and so cannot be a static
- * value.
- */
 const struct brw_tracked_state *atoms[] =
 {
    &brw_check_fallback,
@@ -94,7 +88,7 @@ const struct brw_tracked_state *atoms[] =
    &brw_index_buffer,
    &brw_vertices,
 
-   &brw_constant_buffer
+   &brw_curbe_buffer
 };