projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b474478
)
r600g: fix rendering, only enable target we write too
author
Jerome Glisse
<jglisse@redhat.com>
Fri, 6 Aug 2010 21:22:45 +0000
(17:22 -0400)
committer
Jerome Glisse
<jglisse@redhat.com>
Fri, 6 Aug 2010 21:23:43 +0000
(17:23 -0400)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/r600_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_state.c
b/src/gallium/drivers/r600/r600_state.c
index 223f2f390083d2baf0bf4ef95d02679f53834d93..ff621084d47ecbde4cf2775d2c0ef0bb5219c075 100644
(file)
--- a/
src/gallium/drivers/r600/r600_state.c
+++ b/
src/gallium/drivers/r600/r600_state.c
@@
-1224,14
+1224,14
@@
static struct radeon_state *r600_cb_cntl(struct r600_context *rctx)
}
if (pbs->independent_blend_enable) {
- for (i = 0; i <
8
; i++) {
+ for (i = 0; i <
nr_cbufs
; i++) {
if (pbs->rt[i].blend_enable) {
color_control |= S_028808_TARGET_BLEND_ENABLE(1 << i);
}
target_mask |= (pbs->rt[i].colormask << (4 * i));
}
} else {
- for (i = 0; i <
8
; i++) {
+ for (i = 0; i <
nr_cbufs
; i++) {
if (pbs->rt[0].blend_enable) {
color_control |= S_028808_TARGET_BLEND_ENABLE(1 << i);
}