r300: Clean up after rebase.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:58:16 +0000 (23:58 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:58:16 +0000 (23:58 -0800)
Fix a couple struct members, clear up a few texture lines.

src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c

index d81aee94e3d9d6492316837ea70f1ca664154ed7..96fdce903e06d3e16212daf639339afba5182433 100644 (file)
@@ -325,8 +325,8 @@ static void*
                     R300_S_FRONT_ZFAIL_OP_SHIFT);
 
         dsa->stencil_ref_mask = (state->stencil[0].ref_value) |
-                (state->stencil[0].value_mask << R300_STENCILMASK_SHIFT) |
-                (state->stencil[0].write_mask << R300_STENCILWRITEMASK_SHIFT);
+                (state->stencil[0].valuemask << R300_STENCILMASK_SHIFT) |
+                (state->stencil[0].writemask << R300_STENCILWRITEMASK_SHIFT);
 
         if (state->stencil[1].enabled) {
             dsa->z_buffer_control |= R300_STENCIL_FRONT_BACK;
@@ -341,8 +341,8 @@ static void*
                     R300_S_BACK_ZFAIL_OP_SHIFT);
 
             dsa->stencil_ref_bf = (state->stencil[1].ref_value) |
-                (state->stencil[1].value_mask << R300_STENCILMASK_SHIFT) |
-                (state->stencil[1].write_mask << R300_STENCILWRITEMASK_SHIFT);
+                (state->stencil[1].valuemask << R300_STENCILMASK_SHIFT) |
+                (state->stencil[1].writemask << R300_STENCILWRITEMASK_SHIFT);
         }
     }
 
@@ -350,7 +350,8 @@ static void*
     if (state->alpha.enabled) {
         dsa->alpha_function = translate_alpha_function(state->alpha.func) |
             R300_FG_ALPHA_FUNC_ENABLE;
-        dsa->alpha_reference = CLAMP(state->alpha.ref * 1023.0f, 0, 1023);
+        dsa->alpha_reference = CLAMP(state->alpha.ref_value * 1023.0f,
+                                     0, 1023);
     } else {
         dsa->z_buffer_top = R300_ZTOP_ENABLE;
     }
index eb7c9d06f53c115086b3aa0d02296d99884c5350..ae2d525d78b8675e04cb6ad68e1e233101a9acda 100644 (file)
@@ -58,7 +58,7 @@ static struct pipe_texture*
     r300_texture_create(struct pipe_screen* screen,
                         const struct pipe_texture* template)
 {
-    struct r300_screen* r300screen = r300_screen(screen);
+    /* XXX struct r300_screen* r300screen = r300_screen(screen); */
 
     struct r300_texture* tex = CALLOC_STRUCT(r300_texture);
 
@@ -72,9 +72,9 @@ static struct pipe_texture*
 
     r300_setup_miptree(tex);
 
-    tex->buffer = screen->winsys->buffer_create(screen->winsys, 32,
-                                                PIPE_BUFFER_USAGE_PIXEL,
-                                                tex->size);
+    tex->buffer = screen->buffer_create(screen->winsys, 32,
+                                        PIPE_BUFFER_USAGE_PIXEL,
+                                        tex->size);
 
     if (!tex->buffer) {
         FREE(tex);