summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-05-29 15:51:20 +0200
committerMarek Olšák <[email protected]>2013-06-13 03:54:13 +0200
commitd6d4a9a2e87d9ed2c5b3a6acee771ff55a903e47 (patch)
treeabac1d5bb5d132d25028691c85812f10d13f2fa1 /src/gallium/drivers/r300
parent17350ea979b883662573dac136cd9efb49938210 (diff)
gallium/u_blitter: make clearing independent of the colorbuffer format
There isn't any difference between 32_FLOAT and 32_*INT in vertex fetching. Both of them don't do any format conversion. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index 6cac5678485..7802594bbb8 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -363,13 +363,12 @@ static void r300_clear(struct pipe_context* pipe,
/* Clear. */
if (buffers) {
- enum pipe_format cformat = fb->nr_cbufs ? fb->cbufs[0]->format : PIPE_FORMAT_NONE;
/* Clear using the blitter. */
r300_blitter_begin(r300, R300_CLEAR);
util_blitter_clear(r300->blitter,
width,
height,
- buffers, cformat, color, depth, stencil);
+ buffers, color, depth, stencil);
r300_blitter_end(r300);
} else if (r300->zmask_clear.dirty ||
r300->hiz_clear.dirty ||