r300g: remove the relocation after AARESOLVE_PITCH
authorMarek Olšák <maraeo@gmail.com>
Sun, 13 Feb 2011 23:55:18 +0000 (00:55 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 14 Feb 2011 06:45:14 +0000 (07:45 +0100)
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_render.c

index 13c1f2d84241313be432415cb038f1b2cd2b3221..be5768a3e5d41347d8e3d4106ecc7deed14e0839 100644 (file)
@@ -354,9 +354,7 @@ void r300_emit_aa_state(struct r300_context *r300, unsigned size, void *state)
     if (aa->dest) {
         OUT_CS_REG(R300_RB3D_AARESOLVE_OFFSET, aa->dest->offset);
         OUT_CS_RELOC(aa->dest);
-
         OUT_CS_REG(R300_RB3D_AARESOLVE_PITCH, aa->dest->pitch);
-        OUT_CS_RELOC(aa->dest);
     }
 
     OUT_CS_REG(R300_RB3D_AARESOLVE_CTL, aa->aaresolve_ctl);
index 6767a5521b2869ea279ff84c7b61e60c42ca0297..0d50de5e7f9d1bab9c9f7ccafe6c295bb9005369 100644 (file)
@@ -1215,7 +1215,7 @@ static void r300_resource_resolve(struct pipe_context* pipe,
     aa->aaresolve_ctl =
         R300_RB3D_AARESOLVE_CTL_AARESOLVE_MODE_RESOLVE |
         R300_RB3D_AARESOLVE_CTL_AARESOLVE_ALPHA_AVERAGE;
-    r300->aa_state.size = 12;
+    r300->aa_state.size = 10;
     r300_mark_atom_dirty(r300, &r300->aa_state);
 
     /* Resolve the surface. */