summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-02-01 21:45:15 +0100
committerMarek Olšák <[email protected]>2013-02-07 00:20:24 +0100
commit4dc142d521f9161275deb030efcde112f835307c (patch)
tree37c449cb6c5b3c16dae39c5449618112f786ebe0 /src/gallium/drivers/r300/r300_blit.c
parent27e216a07501f4d2ade1e1ec8b9a1f709304013b (diff)
r300g: fix blending and alpha-test with RGBX16F and enable MSAA for it
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index e903e9a57cc..76f83273cf2 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -187,7 +187,8 @@ static void r300_set_clear_color(struct r300_context *r300,
memset(&uc, 0, sizeof(uc));
util_pack_color(color->f, fb->cbufs[0]->format, &uc);
- if (fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT) {
+ if (fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16A16_FLOAT ||
+ fb->cbufs[0]->format == PIPE_FORMAT_R16G16B16X16_FLOAT) {
/* (0,1,2,3) maps to (B,G,R,A) */
r300->color_clear_value_gb = uc.h[0] | ((uint32_t)uc.h[1] << 16);
r300->color_clear_value_ar = uc.h[2] | ((uint32_t)uc.h[3] << 16);