i965: don't use NumLayers for 3D textures.
authorDave Airlie <airlied@redhat.com>
Fri, 3 Jun 2016 01:36:38 +0000 (11:36 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2016 03:07:07 +0000 (13:07 +1000)
commitff2e569153d48bda347be729fc441852ab293138
tree61ec15c4fcb19815f42e64ab273f007494a7d68d
parent1f66a4b68955b9d6cae629cec90e5e0f301c6a7a
i965: don't use NumLayers for 3D textures.

For 3D textures we shouldn't be using NumLayers, we need
to get it from the depth.

This fixes:
GL45-CTS.geometry_shader.layered_framebuffer.clear_call_support

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/intel_fbo.c