[Mesa-dev] [PATCH 1/2] radeonsi: Initialize uses_kill boolean from TGSI info.
Michel Dänzer
michel at daenzer.net
Thu Nov 8 10:37:04 PST 2012
From: Michel Dänzer <michel.daenzer at amd.com>
Fixes discarded pixels incorrectly updating the depth buffer.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/drivers/radeonsi/radeonsi_shader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 53e889c..ce2095c 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -779,6 +779,7 @@ int si_pipe_shader_create(
bld_base = &si_shader_ctx.radeon_bld.soa.bld_base;
tgsi_scan_shader(sel->tokens, &shader_info);
+ shader->shader.uses_kill = shader_info.uses_kill;
bld_base->info = &shader_info;
bld_base->emit_fetch_funcs[TGSI_FILE_CONSTANT] = fetch_constant;
bld_base->emit_prologue = si_llvm_emit_prologue;
--
1.7.10.4
More information about the mesa-dev
mailing list