summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_state_validate.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2009-11-26 16:59:39 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2009-11-27 21:29:22 +0100
commit510fd280b54fa33ed229ef297a1a77c78811c592 (patch)
tree742ce126ed437509e1ef5efe72c1458cc2cd5a1d /src/gallium/drivers/nv50/nv50_state_validate.c
parente65258abf52bd1923a547f76bd7346bf5ed1c5c6 (diff)
nv50: bswap32 the polygon stipple pattern
The hardware wants the pattern the same way it is passed to glPolygonStipple.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state_validate.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index 799d2758fe..19b8ef07b5 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -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);
}