diff options
author | Marek Olšák <[email protected]> | 2014-09-30 15:56:14 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-10-04 15:16:14 +0200 |
commit | 8860584045f8c534264f9d456bfafdb545d81437 (patch) | |
tree | 55231e824d60595252b6d15121de40c8f200bd02 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 8908fae243cb4c15a675006a1cc472f6c59b0d43 (diff) |
radeonsi: get fs_write_all from tgsi_shader_info directly
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 0e2d6c4e6b5..eb256063811 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2215,7 +2215,7 @@ static INLINE void si_shader_selector_key(struct pipe_context *ctx, key->vs.gs_used_inputs = sctx->gs_shader->current->gs_used_inputs; } } else if (sel->type == PIPE_SHADER_FRAGMENT) { - if (sel->fs_write_all) + if (sel->info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS][0]) key->ps.nr_cbufs = sctx->framebuffer.state.nr_cbufs; key->ps.export_16bpc = sctx->framebuffer.export_16bpc; @@ -2312,9 +2312,6 @@ static void *si_create_shader_state(struct pipe_context *ctx, sel->so = state->stream_output; tgsi_scan_shader(state->tokens, &sel->info); - if (pipe_shader_type == PIPE_SHADER_FRAGMENT) - sel->fs_write_all = sel->info.color0_writes_all_cbufs; - r = si_shader_select(ctx, sel); if (r) { free(sel); |