From: Michel Dänzer Date: Wed, 7 Nov 2012 16:33:08 +0000 (+0100) Subject: radeonsi: Initialize uses_kill boolean from TGSI info. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e44dfd4b3c68d58b16fa6943b82963809ab2d177;p=mesa.git radeonsi: Initialize uses_kill boolean from TGSI info. Fixes discarded pixels incorrectly updating the depth buffer. Signed-off-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 53e889c19de..ce2095c8652 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;