Skip to content
Snippets Groups Projects
Commit 96ad4f64 authored by Pavel Ondračka's avatar Pavel Ondračka Committed by Marge Bot
Browse files

r300: Remove broken optimization in rc_transform_KILL

The logic was reversed so this was not only not working but it was
also removing random instructions around. The special IF-KILP-ENDIF
case this optimization was targeting is already transformed to
KILL_IF in the TGSI, so just remove this altogether.

This fixes piglit glsl-fs-discard-04
v2: Update the comment as well

Closes: mesa/mesa#343


Signed-off-by: Pavel Ondračka's avatarPavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: default avatarFilip Gawin <filip.gawin@zoho.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt's avatarEmma Anholt <emma@anholt.net>
Cc: mesa-stable
Part-of: <mesa/mesa!14378>
parent 496947d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment