r300-gallium: Setup surface in r300_surface_copy.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 11 May 2009 17:09:59 +0000 (10:09 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 11 May 2009 17:09:59 +0000 (10:09 -0700)
I haven't tested, but this may unbreak surface copies.

src/gallium/drivers/r300/r300_surface.c

index 33bc4ad0caae363ece98ccad7beda55d30262615..d6f3fe1466d7e7277367550de0ae352c3664eed9 100644 (file)
@@ -225,6 +225,8 @@ static void r300_surface_copy(struct pipe_context* pipe,
                 srcx, srcy, w, h);
     }
 
+    r300_surface_setup(r300, desttex, x, y, w, h);
+
     r300_emit_sampler(r300, &r300_sampler_copy_state, 0);
     r300_emit_texture(r300, srctex, 0);
     r300_flush_textures(r300);