projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63e7d4
)
radeonsi: don't write undefined output channels to LDS in LS
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 17 Nov 2017 03:56:13 +0000
(
04:56
+0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Sat, 25 Nov 2017 16:16:56 +0000
(17:16 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index
bca0ca9
..
16036e3
100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_shader.c
+++ b/
src/gallium/drivers/radeonsi/si_shader.c
@@
-3176,6
+3176,9
@@
static void si_llvm_emit_ls_epilogue(struct lp_build_tgsi_context *bld_base)
LLVMConstInt(ctx->i32, param * 4, 0), "");
for (chan = 0; chan < 4; chan++) {
+ if (!(info->output_usagemask[i] & (1 << chan)))
+ continue;
+
lds_store(bld_base, chan, dw_addr,
LLVMBuildLoad(ctx->ac.builder, out_ptr[chan], ""));
}