radeonsi: Initialize uses_kill boolean from TGSI info.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 7 Nov 2012 16:33:08 +0000 (17:33 +0100)
committerMichel Dänzer <michel@daenzer.net>
Mon, 12 Nov 2012 14:45:42 +0000 (15:45 +0100)
Fixes discarded pixels incorrectly updating the depth buffer.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 53e889c19de22d746b430d11a01630eb94c57224..ce2095c8652654998d7ebdc31beff1139c74b475 100644 (file)
@@ -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;