diff options
author | Brian <[email protected]> | 2007-08-09 18:24:37 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-09 18:25:50 -0600 |
commit | 3d31252d44fb5983a089b9f3488745757772adea (patch) | |
tree | d715b5fd1f272730cca28b425a59e67a8dd40978 /src/mesa/pipe/i915simple | |
parent | 7c9a1357beabd6d0df88142d31cd5d77a012e85a (diff) |
move viewport Y inversion to state tracker
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_state.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state.c b/src/mesa/pipe/i915simple/i915_state.c index a176165b74a..ab00cbc822f 100644 --- a/src/mesa/pipe/i915simple/i915_state.c +++ b/src/mesa/pipe/i915simple/i915_state.c @@ -189,22 +189,9 @@ static void i915_set_viewport_state( struct pipe_context *pipe, const struct pipe_viewport_state *viewport ) { struct i915_context *i915 = i915_context(pipe); - float sy, ty; i915->viewport = *viewport; /* struct copy */ - /* Negate Y scale to flip image vertically. - * The NDC Y coords prior to viewport transformation are in the range - * [y=-1=bottom, y=1=top] - * Intel window coords are in the range [y=0=top, y=H-1=bottom] where H - * is the window height. - * Use the viewport transformation to invert Y. - */ - sy = viewport->scale[1]; - ty = viewport->translate[1]; - i915->viewport.scale[1] = -sy; - i915->viewport.translate[1] = i915->framebuffer.cbufs[0]->height - ty; - /* pass the viewport info to the draw module */ draw_set_viewport_state(i915->draw, &i915->viewport); |