OSDN Git Service

i965/gen6: Adjust render height in errata case for MSAA
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 25 Feb 2014 19:18:25 +0000 (11:18 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 16 Aug 2014 03:11:40 +0000 (20:11 -0700)
commit341995e4b59b569c48264a839a4fbac2f0ae43d1
treed1c6c17c3792c833bd0ac720067c388eae5ec435
parentf063712373e888addba235a58c5f907959218878
i965/gen6: Adjust render height in errata case for MSAA

In the gen6 PRM Volume 1 Part 1: Graphics Core, Section
7.18.3.7.1 (Surface Arrays For all surfaces other than separate
stencil buffer):

 "[DevSNB] Errata: Sampler MSAA Qpitch will be 4 greater than the
  value calculated in the equation above , for every other odd Surface
  Height starting from 1 i.e. 1,5,9,13"

Since this Qpitch errata only impacts the sampler, we have to adjust
the input for the rendering surface to achieve the same qpitch. For
the affected heights, we increment the height by 1 for the rendering
surface.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_surface_state.c