i915g: Fix depth/stencil glClear
authorMichael Karcher <freedesktop-bugzilla@mkarcher.dialup.fu-berlin.de>
Sat, 9 Jun 2012 23:49:30 +0000 (01:49 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 10 Jun 2012 14:33:42 +0000 (16:33 +0200)
commite2c08e824b9698f911fb6c20da43ce7476de0b3f
tree065808c5e2394133fd6ea5d7c36ff3c697fb5018
parent306c9f0c5762ad75e340d22b2405ac11e74d3378
i915g: Fix depth/stencil glClear

This patch fixes a copy/paste error and masking of depth/stencil (stencil
is in the top 8 bits), and makes glean/readPixSanity happy.

Both the stencil and the depth buffer piglit test also pass if
glClear(DEPTH | STENCIL) is executed instead of
glClear(DEPTH)/glClear(STENCIL).

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Christopher Egert <cme3000@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/gallium/drivers/i915/i915_clear.c