i915g: fix bug in ds clear logic (still disabled)

This commit is contained in:
Roland Scheidegger 2010-06-05 16:49:51 +02:00
parent c00065e5c2
commit b6cd0712e9
1 changed files with 2 additions and 2 deletions

View File

@ -143,8 +143,8 @@ i915_clear_depth_stencil(struct pipe_context *pipe,
/* XXX presumably this does read-modify-write
(otherwise this won't work anyway). Hence will only want to
do it if really have stencil and it isn't cleared */
if (!((clear_flags & PIPE_CLEAR_STENCIL) ||
(dst->format != PIPE_FORMAT_Z24_UNORM_S8_USCALED)))
if ((clear_flags & PIPE_CLEAR_STENCIL) ||
(dst->format != PIPE_FORMAT_Z24_UNORM_S8_USCALED))
mask |= XY_COLOR_BLT_WRITE_ALPHA;
i915_fill_blit( i915_context(pipe),