r600: set border color as RGBA
authorAndre Maasikas <amaasikas@gmail.com>
Tue, 18 Jan 2011 14:04:43 +0000 (16:04 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Tue, 18 Jan 2011 14:21:14 +0000 (16:21 +0200)
border color is RGBA for samples - this passes texenv tests

src/mesa/drivers/dri/r600/r600_tex.c

index 2a99ded5d674ba7c6dcc5fda6c30a6b5abbdaf59..fe4f0e486613ef5587fe4a80147d00bf202dcce1 100644 (file)
@@ -265,9 +265,9 @@ static void r600SetTexFilter(radeonTexObjPtr t, GLenum minf, GLenum magf, GLfloa
 static void r600SetTexBorderColor(radeonTexObjPtr t, const GLfloat color[4])
 {
        t->TD_PS_SAMPLER0_BORDER_ALPHA = *((uint32_t*)&(color[3]));
-       t->TD_PS_SAMPLER0_BORDER_RED = *((uint32_t*)&(color[2]));
+       t->TD_PS_SAMPLER0_BORDER_BLUE = *((uint32_t*)&(color[2]));
        t->TD_PS_SAMPLER0_BORDER_GREEN = *((uint32_t*)&(color[1]));
-       t->TD_PS_SAMPLER0_BORDER_BLUE = *((uint32_t*)&(color[0]));
+       t->TD_PS_SAMPLER0_BORDER_RED = *((uint32_t*)&(color[0]));
         SETfield(t->SQ_TEX_SAMPLER0, SQ_TEX_BORDER_COLOR_REGISTER,
                 BORDER_COLOR_TYPE_shift, BORDER_COLOR_TYPE_mask);
 }