projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af16c82
)
r600: fix state size prediction after dc0777d3
author
Andre Maasikas
<amaasikas@gmail.com>
Wed, 9 Dec 2009 08:51:52 +0000
(10:51 +0200)
committer
Andre Maasikas
<amaasikas@gmail.com>
Wed, 9 Dec 2009 08:51:52 +0000
(10:51 +0200)
src/mesa/drivers/dri/r600/r700_chip.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_chip.c
b/src/mesa/drivers/dri/r600/r700_chip.c
index d8661b443972de3afa58cbffea2152d1b51fe442..dacc2ccc4c1be67863cdcc80aaaf481b80c2c684 100644
(file)
--- a/
src/mesa/drivers/dri/r600/r700_chip.c
+++ b/
src/mesa/drivers/dri/r600/r700_chip.c
@@
-1134,7
+1134,11
@@
static int check_blnd(GLcontext *ctx, struct radeon_state_atom *atom)
count += 3;
if (context->radeon.radeonScreen->chip_family > CHIP_FAMILY_R600) {
- for (ui = 0; ui < R700_MAX_RENDER_TARGETS; ui++) {
+ /* targets are enabled in r700SetRenderTarget but state
+ size is calculated before that. Until MRT's are done
+ hardcode target0 as enabled. */
+ count += 3;
+ for (ui = 1; ui < R700_MAX_RENDER_TARGETS; ui++) {
if (r700->render_target[ui].enabled)
count += 3;
}