OSDN Git Service

i965/gen4: Subtract 1 from buffer sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 11 Jun 2016 04:11:02 +0000 (21:11 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 24 Jun 2016 19:31:42 +0000 (20:31 +0100)
commit69234ef45eb5d85dc05cec7ebabd9d1f57dd952d
treeda18c99d986292769ad01d750ac5bd26d752603c
parent268145410292aa2cf4e74932ce5ce5783e376252
i965/gen4: Subtract 1 from buffer sizes

The PRM states that the values put in Width, Height, and Depth should be
various bits from the value size - 1.  We seem to have done this wrong
more-or-less from the start.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 2a1cc94d27c80929d91e38b4843333a5408d563e)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c