nv50: fix blend colour
authorBen Skeggs <skeggsb@gmail.com>
Mon, 16 Jun 2008 12:06:54 +0000 (22:06 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Sun, 29 Jun 2008 05:46:19 +0000 (15:46 +1000)
src/gallium/drivers/nv50/nv50_state_validate.c

index b5a9195..9d93c04 100644 (file)
@@ -135,11 +135,11 @@ nv50_state_validate(struct nv50_context *nv50)
 
        if (nv50->dirty & NV50_NEW_BLEND_COLOUR) {
                so = so_new(5, 0);
-               so_method(so, tesla, NV50TCL_BLEND_COLOR(0), 8);
-               so_data  (so, fui(nv50->blend_colour.color[3]));
+               so_method(so, tesla, NV50TCL_BLEND_COLOR(0), 4);
                so_data  (so, fui(nv50->blend_colour.color[0]));
                so_data  (so, fui(nv50->blend_colour.color[1]));
                so_data  (so, fui(nv50->blend_colour.color[2]));
+               so_data  (so, fui(nv50->blend_colour.color[3]));
                so_emit(nvws, so);
                so_ref(NULL, &so);
        }