i965/blorp/gen8: Use the correct max level and layer in emit_surface_states
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 06:25:19 +0000 (23:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commit620f81d2edb20ffd9803ee318f60845441459fac
tree615662c0949ec289f90a504d80f54591b15300ff
parent6ba88bce64b343761aabe3a6c7ee285c6020a959
i965/blorp/gen8: Use the correct max level and layer in emit_surface_states

We were adding in the base which is wrong because the values given in the
miptree are relative to zero and not the base layer/level.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen8_blorp.c