mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
softpipe: Skip depth testing for PIPE_S8_UNORM.
This commit is contained in:
parent
8fb92e96e9
commit
65fa11959f
1 changed files with 2 additions and 1 deletions
|
|
@ -667,6 +667,7 @@ depth_test_quads_fallback(struct quad_stage *qs,
|
|||
}
|
||||
|
||||
if (qs->softpipe->framebuffer.zsbuf &&
|
||||
pf_get_component_bits(qs->softpipe->framebuffer.zsbuf->format, PIPE_FORMAT_COMP_Z) &&
|
||||
(qs->softpipe->depth_stencil->depth.enabled ||
|
||||
qs->softpipe->depth_stencil->stencil[0].enabled)) {
|
||||
|
||||
|
|
@ -885,6 +886,7 @@ choose_depth_test(struct quad_stage *qs,
|
|||
boolean alpha = qs->softpipe->depth_stencil->alpha.enabled;
|
||||
|
||||
boolean depth = (qs->softpipe->framebuffer.zsbuf &&
|
||||
pf_get_component_bits(qs->softpipe->framebuffer.zsbuf->format, PIPE_FORMAT_COMP_Z) &&
|
||||
qs->softpipe->depth_stencil->depth.enabled);
|
||||
|
||||
unsigned depthfunc = qs->softpipe->depth_stencil->depth.func;
|
||||
|
|
@ -895,7 +897,6 @@ choose_depth_test(struct quad_stage *qs,
|
|||
|
||||
boolean occlusion = qs->softpipe->active_query_count;
|
||||
|
||||
|
||||
if (!alpha &&
|
||||
!depth &&
|
||||
!stencil) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue