diff options
author | Corbin Simpson <[email protected]> | 2009-05-08 16:50:42 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-05-08 19:41:08 -0700 |
commit | cd59933d9f70c6acea63013f1b773b545026bf81 (patch) | |
tree | dbf90061f44336fdff1f9750ae53d6bd13a10cb3 /src/gallium/drivers/r300/r300_state.c | |
parent | 4816764777485b46f360eb6f86dea243d1809221 (diff) |
r300-gallium, radeon: A couple cleanups.
Trying to track down goddamn bugs. :C
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 184a23c9e68..0143e228c4e 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -562,14 +562,17 @@ static void r300_set_viewport_state(struct pipe_context* pipe, r300->viewport_state->vte_control = R300_VTX_W0_FMT; if (state->scale[0] != 1.0f) { + assert(state->scale[0] != 0.0f); r300->viewport_state->xscale = state->scale[0]; r300->viewport_state->vte_control |= R300_VPORT_X_SCALE_ENA; } if (state->scale[1] != 1.0f) { + assert(state->scale[1] != 0.0f); r300->viewport_state->yscale = state->scale[1]; r300->viewport_state->vte_control |= R300_VPORT_Y_SCALE_ENA; } if (state->scale[2] != 1.0f) { + assert(state->scale[2] != 0.0f); r300->viewport_state->zscale = state->scale[2]; r300->viewport_state->vte_control |= R300_VPORT_Z_SCALE_ENA; } |