From e44dfd4b3c68d58b16fa6943b82963809ab2d177 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Wed, 7 Nov 2012 17:33:08 +0100 Subject: radeonsi: Initialize uses_kill boolean from TGSI info. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes discarded pixels incorrectly updating the depth buffer. Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3