diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-10 00:55:26 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-10 00:57:32 -0700 |
commit | 8dbe4f0c356edacf479ceed106f68fa79f1668ed (patch) | |
tree | 96e7f34078511d4a8ec67fc198ff241538038bf5 /src | |
parent | b7219853af66085d859468e91606ae4ee5bae28e (diff) |
r300-gallium: Unbreak fallback in surface_fill.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r300/r300_surface.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/r300/r300_surface.c b/src/gallium/drivers/r300/r300_surface.c index b607b98a02..938a521b87 100644 --- a/src/gallium/drivers/r300/r300_surface.c +++ b/src/gallium/drivers/r300/r300_surface.c @@ -47,14 +47,11 @@ static void r300_surface_fill(struct pipe_context* pipe, dest, x, y, w, h, pixpitch, color); /* Fallback? */ - /*if (0) { + if (tex->tex.format != PIPE_FORMAT_A8R8G8B8_UNORM) { debug_printf("r300: Falling back on surface clear..."); - void* map = pipe->screen->surface_map(pipe->screen, dest, - PIPE_BUFFER_USAGE_CPU_WRITE); - pipe_fill_rect(map, &dest->block, &dest->stride, x, y, w, h, color); - pipe->screen->surface_unmap(pipe->screen, dest); + util_surface_fill(pipe, dest, x, y, w, h, color); return; - }*/ + } r300_emit_invariant_state(r300); |