i965: Fix depth (array slices) computation for 1D_ARRAY render targets.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 7 May 2014 21:35:43 +0000 (14:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 8 May 2014 06:42:11 +0000 (23:42 -0700)
commite6967270c75a5b669152127bb7a746d55f4407a6
tree34dcfa1f7582ded369bd181e542a210b03d22ac1
parent5c399ca8e4ccae509a5116b3b9f41634a7ca4322
i965: Fix depth (array slices) computation for 1D_ARRAY render targets.

1D array targets store the number of slices in the Height field.

Fixes Piglit's spec/!OpenGL 3.2/layered-rendering/clear-color-all-types
1d_array single_level, at least when used with Meta clears.

Cc: "10.2 10.1 10.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c