[Intel-gfx] [PATCH] drm/i915/pch: Fix integer math bugs in panel fitting

Keith Packard keithp at keithp.com
Wed Jul 13 22:47:40 CEST 2011


On Wed, 13 Jul 2011 16:32:32 -0400, Adam Jackson <ajax at redhat.com> wrote:

> +				if (width & 1)
> +				    	width++;


> +				if (height & 1)
> +				    height++;

You'll want to stick a comment in here describing why this is
here. Otherwise, someone will just break it in the future.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110713/08ead663/attachment.sig>


More information about the Intel-gfx mailing list