[Mesa-dev] [PATCH 05/16] radeonsi: don't rely on shader->output in si_llvm_emit_fs_epilogue

Marek Olšák maraeo at gmail.com
Sat Oct 4 15:42:08 PDT 2014


From: Marek Olšák <marek.olsak at amd.com>

---
 src/gallium/drivers/radeonsi/si_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 85610fa..203e505 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1466,7 +1466,7 @@ static void si_llvm_emit_fs_epilogue(struct lp_build_tgsi_context * bld_base)
 
 				/* Handle FS_COLOR0_WRITES_ALL_CBUFS. */
 				if (shader->selector->info.properties[TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS] &&
-                                    shader->output[i].sid == 0 &&
+				    d->Semantic.Index == 0 &&
 				    si_shader_ctx->shader->key.ps.last_cbuf > 0) {
 					for (int c = 1; c <= si_shader_ctx->shader->key.ps.last_cbuf; c++) {
 						si_llvm_init_export_args_load(bld_base,
-- 
1.9.1



More information about the mesa-dev mailing list