i965/blorp: Fixup scissoring of blits to window system buffers.
authorPaul Berry <stereotype441@gmail.com>
Sat, 14 Jul 2012 01:30:55 +0000 (18:30 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 24 Jul 2012 21:52:57 +0000 (14:52 -0700)
commit0dbec6ae07e7b3d566cc397ab09caa413e412846
treed381832579a2242b7ae4a8bb18eef284d17a42f7
parentda54d2e576426122009be083ecbfb9eefd8a3799
i965/blorp: Fixup scissoring of blits to window system buffers.

This patch modifies the order of operations in the blorp engine so
that clipping and scissoring are performed before adjusting the
coordinates to account for the difference in origin convention between
window system buffers and framebuffer objects.  Previously, we would
do clipping and scissoring after adjusting for origin conventions, so
we would get scissoring wrong in window system buffers.

Fixes Piglit test "fbo-scissor-blit window".

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp