diff options
author | Marek Olšák <[email protected]> | 2014-10-28 11:12:27 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-10-28 23:20:45 +0100 |
commit | 3fc499a1dd2a98fdd9aa9c457a5607531c6696e1 (patch) | |
tree | d34ca06c5e7612406f70d18710392c57dd30f502 /src/gallium/drivers/r300 | |
parent | e05259b63745533231d7094967e7e1066a0e0851 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index cfcc19d1c68..6ce03293e94 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -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); } } |