diff options
author | Andre Maasikas <amaasikas@gmail.com> | 2009-11-04 10:00:47 +0200 |
---|---|---|
committer | Andre Maasikas <amaasikas@gmail.com> | 2009-12-08 09:41:10 +0200 |
commit | dc0777d3e3b760d7faa5fb99a189919bde07ca0b (patch) | |
tree | 8a790c94ec6f60a972236983451b4a81ec10638b /src | |
parent | add6dfbba64260c9b314b4a95c8def084e05bd3b (diff) | |
download | external_mesa3d-dc0777d3e3b760d7faa5fb99a189919bde07ca0b.zip external_mesa3d-dc0777d3e3b760d7faa5fb99a189919bde07ca0b.tar.gz external_mesa3d-dc0777d3e3b760d7faa5fb99a189919bde07ca0b.tar.bz2 |
r600: reorder state for render_target and blend
First time around render targets are not enabled yet (done in
r700SendRenderTargetState) so blend state is not emitted for any targets.
Affects first glClear in some mesa tests.
As a quick fix reorder state emit so that target is set first
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_chip.c b/src/mesa/drivers/dri/r600/r700_chip.c index 8707a76..d8661b4 100644 --- a/src/mesa/drivers/dri/r600/r700_chip.c +++ b/src/mesa/drivers/dri/r600/r700_chip.c @@ -1250,9 +1250,9 @@ void r600InitAtoms(context_t *context) ALLOC_STATE(poly, always, 10, r700SendPolyState); ALLOC_STATE(cb, cb, 18, r700SendCBState); ALLOC_STATE(clrcmp, always, 6, r700SendCBCLRCMPState); + ALLOC_STATE(cb_target, always, 25, r700SendRenderTargetState); ALLOC_STATE(blnd, blnd, (6 + (R700_MAX_RENDER_TARGETS * 3)), r700SendCBBlendState); ALLOC_STATE(blnd_clr, always, 6, r700SendCBBlendColorState); - ALLOC_STATE(cb_target, always, 25, r700SendRenderTargetState); ALLOC_STATE(sx, always, 9, r700SendSXState); ALLOC_STATE(vgt, always, 41, r700SendVGTState); ALLOC_STATE(spi, always, (59 + R700_MAX_SHADER_EXPORTS), r700SendSPIState); |