radeonsi: Initialize uses_kill boolean from TGSI info.

Fixes discarded pixels incorrectly updating the depth buffer.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Michel Dänzer 2012-11-07 17:33:08 +01:00 committed by Michel Dänzer
parent 557d4918ad
commit e44dfd4b3c
1 changed files with 1 additions and 0 deletions

View 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;