intel: Fix regression in clear_with_blit from 7bae1c3d
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Mar 2011 10:41:46 +0000 (11:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Mar 2011 10:58:36 +0000 (11:58 +0100)
commitc40b7910ee1338b9d391816df5391ce43f509ef0
treecdb013ffed1bc367f431ad2c658539a51ea7a258
parent5f996e2b1d09dad64c088ccabb1a4a53ebfb8102
intel: Fix regression in clear_with_blit from 7bae1c3d

Oops, the mask was being used in the loop to determine whether to use
include the stencil || depth values. This began to fail when mask was
cleared at the beginning of the loop. So reorder the tests and do the
work up-front along with determining the depth_stencil value to use.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35822
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_blit.c