i965: Fix blorp clear of layered framebuffers.
authorPaul Berry <stereotype441@gmail.com>
Tue, 19 Nov 2013 20:58:02 +0000 (12:58 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 22 Nov 2013 02:16:39 +0000 (18:16 -0800)
commitc1019670ea89505ea7411629c052d662c8eb6be6
treed1bc9496db0f0a95d1e6cd90536df4d442c71e99
parent1ec5365429b46a39a06186092502c8e66fb4140e
i965: Fix blorp clear of layered framebuffers.

From section 4.4.7 (Layered Framebuffers) of the GLSL 3.2 spec:

    When the Clear or ClearBuffer* commands are used to clear a
    layered framebuffer attachment, all layers of the attachment are
    cleared.

This patch fixes the blorp clear path for color buffers.

Fixes piglit test "spec/!OpenGL 3.2/layered-rendering/clear-color".

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp