nv50: bswap32 the polygon stipple pattern
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 26 Nov 2009 15:59:39 +0000 (16:59 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 27 Nov 2009 20:29:22 +0000 (21:29 +0100)
The hardware wants the pattern the same way it is
passed to glPolygonStipple.

src/gallium/drivers/nv50/nv50_state_validate.c

index 799d2758fee17ee6468136f1c4e35acb816c66eb..19b8ef07b5e0201b26a6ad4b062d34cfaf033a33 100644 (file)
@@ -285,7 +285,7 @@ nv50_state_validate(struct nv50_context *nv50)
                so = so_new(33, 0);
                so_method(so, tesla, NV50TCL_POLYGON_STIPPLE_PATTERN(0), 32);
                for (i = 0; i < 32; i++)
-                       so_data(so, nv50->stipple.stipple[i]);
+                       so_data(so, util_bswap32(nv50->stipple.stipple[i]));
                so_ref(so, &nv50->state.stipple);
                so_ref(NULL, &so);
        }