Parcourir la source

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

tags/mesa-7.9-rc1
Roland Scheidegger il y a 16 ans
Parent
révision
b6cd0712e9
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/gallium/drivers/i915/i915_surface.c

+ 2
- 2
src/gallium/drivers/i915/i915_surface.c Voir le fichier

@@ -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),

Chargement…
Annuler
Enregistrer