mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
r300g: fix alpha-test with no colorbuffer
Piglit: - fbo-alphatest-nocolor NOTE: This is a candidate for the stable branches.
This commit is contained in:
parent
e1a9ef2304
commit
226ae9d6c8
1 changed files with 5 additions and 0 deletions
|
|
@ -495,6 +495,11 @@ void r300_emit_fb_state_pipelined(struct r300_context *r300,
|
|||
for (i = 0; i < num_cbufs; i++) {
|
||||
OUT_CS(r300_surface(fb->cbufs[i])->format);
|
||||
}
|
||||
for (; i < 1; i++) {
|
||||
OUT_CS(R300_US_OUT_FMT_C4_8 |
|
||||
R300_C0_SEL_B | R300_C1_SEL_G |
|
||||
R300_C2_SEL_R | R300_C3_SEL_A);
|
||||
}
|
||||
for (; i < 4; i++) {
|
||||
OUT_CS(R300_US_OUT_FMT_UNUSED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue