summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-10-04 20:44:23 +0200
committerMarek Olšák <[email protected]>2014-10-12 23:52:07 +0200
commit34e82005998138504147fd265f87825e4aace31f (patch)
tree2fc88ab8c1577afbc787b482dcddbb2c364ff50f /src/gallium/drivers/radeonsi/si_state.c
parent5e0fbe1b631d883eb0e033938a534a259c8d95fd (diff)
radeonsi: don't recompile shaders when changing nr_cbufs from 0 to 1
Both cases are equivalent. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 6eec88eb483..0ef6d97441a 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -2207,7 +2207,7 @@ static INLINE void si_shader_selector_key(struct pipe_context *ctx,
}
} else if (sel->type == PIPE_SHADER_FRAGMENT) {
if (sel->info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS])
- key->ps.nr_cbufs = sctx->framebuffer.state.nr_cbufs;
+ key->ps.last_cbuf = MAX2(sctx->framebuffer.state.nr_cbufs, 1) - 1;
key->ps.export_16bpc = sctx->framebuffer.export_16bpc;
if (sctx->queued.named.rasterizer) {