r300g: only set clip_halfz for chips with HW TCL

I forgot that we cannot emit vertex shader state on a chip without VS.
In such a case, clip_halfz is handled by the Draw module.
This commit is contained in:
Marek Olšák
2014-10-28 11:12:27 +01:00
parent e05259b637
commit 3fc499a1dd
+1 -1
View File
@@ -1432,7 +1432,7 @@ static void r300_bind_rs_state(struct pipe_context* pipe, void* state)
}
}
if (last_clip_halfz != r300->clip_halfz) {
if (r300->screen->caps.has_tcl && last_clip_halfz != r300->clip_halfz) {
r300_mark_atom_dirty(r300, &r300->vs_state);
}
}