mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
auxiliary: fix depth-only and stencil-only clears
Depth-only and stencil-only clears should mask out depth/stencil from the output, mask out stencil/input from input, and OR or ADD them together. However, due to a typo they were being ANDed, resulting in zeroing the buffer.
This commit is contained in:
parent
d6df0cdcca
commit
bd009df1cc
1 changed files with 1 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ util_clear_depth_stencil(struct pipe_context *pipe,
|
|||
uint32_t *row = (uint32_t *)dst_map;
|
||||
for (j = 0; j < width; j++) {
|
||||
uint32_t tmp = *row & dst_mask;
|
||||
*row++ = tmp & (zstencil & ~dst_mask);
|
||||
*row++ = tmp | (zstencil & ~dst_mask);
|
||||
}
|
||||
dst_map += dst_stride;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue