i965/Gen8: Set up layer constraints properly for renderbuffers
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 8 May 2014 05:15:59 +0000 (17:15 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 8 May 2014 21:46:19 +0000 (09:46 +1200)
commit9269ea599cf8b22577fe4dc5996535f2cc0b7950
tree51c94d1bdd655300997682311bb8a349e45796d9
parentdd43900b7bb3bec0b136bb244a04841123575467
i965/Gen8: Set up layer constraints properly for renderbuffers

Fixing the same issues the previous commit does for Gen7.

Note that I can't test this one, since I don't have a Broadwell.

V2: Restore the MAX2() to account for zero depth/layer_count.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen8_surface_state.c