swr: calculate viewport width/height based on the scale
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 19 Nov 2016 01:19:24 +0000 (20:19 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 22 Nov 2016 02:11:26 +0000 (21:11 -0500)
commit807bc6ea9ee60240b44ca906e875f23d6e4f0ef7
tree9e605aad68a4d0c3e4fd45a47d8b1364d8a94473
parentc3dd5b2e3f47f23c8f6651e0d3af6fde7486656d
swr: calculate viewport width/height based on the scale

The former calculations were for min/max y. The width/height don't take
translate into account.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp