i965: Add a better PRM citation for the IMS dimension mangling.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Aug 2014 08:08:19 +0000 (01:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Feb 2015 01:14:38 +0000 (17:14 -0800)
commit534f07ee85a3a4981171e3e908578e38b2a9770d
tree1f74405e9296ae6bc25bd90c7ff3a19f92b7d568
parente9b86cb5d66867b66c6d453d7bd60bd56fe6587d
i965: Add a better PRM citation for the IMS dimension mangling.

Paul originally had to reverse engineer these formulas based on the
description about how the sampler works.  The description here is not
the easiest to follow - especially given that it's from the Sandybridge
era, when the hardware only did 4x multisampling.

Jordan and I recently found another part of the documentation where they
simply state that IMS dimensions must be adjusted by a set of formulas.
Quoting this section provides an easy to follow explanation for the
code, including 2x/4x/8x/16x.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c