diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-05-28 01:39:27 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-05-28 03:30:11 +0200 |
commit | 3262554bb375230a39e155ad712740bdcd657d4c (patch) | |
tree | 8bff03732c3f1baec13e663399c168d1d2e32277 /src/gallium/drivers/r300/r300_vs_draw.c | |
parent | 49244df5a87f0e6fbf49c8bba6bd42e2852fe957 (diff) | |
download | external_mesa3d-3262554bb375230a39e155ad712740bdcd657d4c.zip external_mesa3d-3262554bb375230a39e155ad712740bdcd657d4c.tar.gz external_mesa3d-3262554bb375230a39e155ad712740bdcd657d4c.tar.bz2 |
r300g/swtcl: fix WPOS
There you are! r300->viewport_state is undefined when using SW TCL.
Piglit score (r300g.tests):
HW TCL: 231/275
SW TCL: 233/275
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs_draw.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_vs_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_vs_draw.c b/src/gallium/drivers/r300/r300_vs_draw.c index 5858492..d64040b 100644 --- a/src/gallium/drivers/r300/r300_vs_draw.c +++ b/src/gallium/drivers/r300/r300_vs_draw.c @@ -352,7 +352,7 @@ void r300_draw_init_vertex_shader(struct draw_context *draw, /* Init the VS output table for the rasterizer. */ r300_init_vs_outputs(vs); - /**/ + /* Make the last generic be WPOS. */ + vs->outputs.wpos = vs->outputs.generic[transform.last_generic + 1]; vs->outputs.generic[transform.last_generic + 1] = ATTR_UNUSED; - vs->outputs.wpos -= 1; } |