i965: Add layer_count to intel_renderbuffer
authorChris Forbes <chrisf@ijw.co.nz>
Tue, 21 Jan 2014 08:45:28 +0000 (21:45 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 10 Apr 2014 06:27:41 +0000 (18:27 +1200)
commit98328e4c193c90bc9945531f82595f09410b1a3b
treebc965a91f0caca6e84c41750704fdbb77d13c596
parent0a08147fcbd34c2ff810d10b596e801b92730ef4
i965: Add layer_count to intel_renderbuffer

This is the effective layer count, for clears etc. This differs from the
depth of the miptree level when views are involved.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_fbo.h