i965: Fix off by one errors in texture buffer size calculations.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Sep 2013 18:23:59 +0000 (11:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Sep 2013 17:52:58 +0000 (10:52 -0700)
commit35a54ad02f977a11b119d1ed13a3ce4d78a1599b
tree8cae58d04f572c8d44e71413c12bda1aaf8b0a01
parent34b11334d417fae65ebe9cf96980aea581e24893
i965: Fix off by one errors in texture buffer size calculations.

The value that's split into width/height/depth needs to be the size of
the buffer minus one.  This makes it consistent with the constant buffer
and shader time SURFACE_STATE setup code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c