summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-29 07:32:56 +0200
committerMarek Olšák <[email protected]>2010-04-29 07:32:56 +0200
commit9be226c8b51d86e8a98d0fc148a04d889fcf0b8e (patch)
tree42047038c6892ca8271c92767ee9b3d7374573df /src
parent18a5da7a6531fc3d617822bc13636653f83f1e9b (diff)
r300g: fix compiler error
Ouch.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index c6845471891..ccc4b583a6a 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -393,14 +393,13 @@ static void r300_update_rs_block(struct r300_context* r300,
/* Rasterize WPOS. */
/* If the FS doesn't need it, it's not written by the VS. */
if (vs_outputs->wpos != ATTR_UNUSED && fs_inputs->wpos != ATTR_UNUSED) {
- rX00_rs_tex(&rs, tex_count, vs_tex_count, SWIZ_XYZW);
+ rX00_rs_tex(&rs, tex_count, tex_count, SWIZ_XYZW);
rX00_rs_tex_write(&rs, tex_count, fp_offset);
DBG(r300, DBG_RS, "r300: Rasterized WPOS written to FS.\n");
fp_offset++;
tex_count++;
- vs_tex_count++;
}
/* Rasterize at least one color, or bad things happen. */