Re: [Mesa-dev] [PATCH v3] swr: calculate viewport width/height based on the scale

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 20, 2016, at 10:32 AM, Ilia Mirkin > wrote: The former calculations were for min/max y. The width/height don't take translate into account.

[Mesa-dev] [PATCH v3] swr: calculate viewport width/height based on the scale

2016-11-20 Thread Ilia Mirkin
The former calculations were for min/max y. The width/height don't take translate into account. Signed-off-by: Ilia Mirkin --- v2 -> v3: - reduce viewport width when clamping the x/y offsets to 0 - subtract vp->y from height, not vp->x Let's hope I don't need to write a