mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
r300g: Move ROPCNTL to the top of the emit order.
According to the docs, this decreases stalls, and indeed we get a tiny bit more glxgears from it.
This commit is contained in:
parent
7b569bef15
commit
e7d760ff09
1 changed files with 1 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ void r300_emit_blend_state(struct r300_context* r300, void* state)
|
||||||
struct r300_blend_state* blend = (struct r300_blend_state*)state;
|
struct r300_blend_state* blend = (struct r300_blend_state*)state;
|
||||||
CS_LOCALS(r300);
|
CS_LOCALS(r300);
|
||||||
BEGIN_CS(8);
|
BEGIN_CS(8);
|
||||||
|
OUT_CS_REG(R300_RB3D_ROPCNTL, blend->rop);
|
||||||
OUT_CS_REG_SEQ(R300_RB3D_CBLEND, 3);
|
OUT_CS_REG_SEQ(R300_RB3D_CBLEND, 3);
|
||||||
if (r300->framebuffer_state.nr_cbufs) {
|
if (r300->framebuffer_state.nr_cbufs) {
|
||||||
OUT_CS(blend->blend_control);
|
OUT_CS(blend->blend_control);
|
||||||
|
|
@ -53,7 +54,6 @@ void r300_emit_blend_state(struct r300_context* r300, void* state)
|
||||||
OUT_CS(0);
|
OUT_CS(0);
|
||||||
/* XXX also disable fastfill here once it's supported */
|
/* XXX also disable fastfill here once it's supported */
|
||||||
}
|
}
|
||||||
OUT_CS_REG(R300_RB3D_ROPCNTL, blend->rop);
|
|
||||||
OUT_CS_REG(R300_RB3D_DITHER_CTL, blend->dither);
|
OUT_CS_REG(R300_RB3D_DITHER_CTL, blend->dither);
|
||||||
END_CS;
|
END_CS;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue