diff --git a/.pick_status.json b/.pick_status.json index e2450f341f3..51a0ee8d537 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3199,7 +3199,7 @@ "description": "intel/fs: Fix use of undefined value in fixup_nomask_control_flow", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "a8ac0bd759cbf9a5984df4bc9f553a3dca41a8ab" }, diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index a11c00dea0b..602f1b46a30 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7606,7 +7606,8 @@ fs_visitor::fixup_3src_null_dest() static const fs_inst * find_halt_control_flow_region_start(const fs_visitor *v) { - if (brw_wm_prog_data(v->prog_data)->uses_kill) { + if (v->stage == MESA_SHADER_FRAGMENT && + brw_wm_prog_data(v->prog_data)->uses_kill) { foreach_block_and_inst(block, fs_inst, inst, v->cfg) { if (inst->opcode == FS_OPCODE_DISCARD_JUMP || inst->opcode == FS_OPCODE_PLACEHOLDER_HALT)