r300/compiler: Fix bug when lowering KILP on r300 cards
authorTom Stellard <tstellar@gmail.com>
Tue, 14 Feb 2012 02:27:28 +0000 (21:27 -0500)
committerTom Stellard <tstellar@gmail.com>
Sun, 26 Feb 2012 14:18:41 +0000 (09:18 -0500)
commit342cac71669662abad3435fd13ecf28d073874c3
treeda096b98757fdc88d3c8b3afc4884d74bd833e24
parent2a97a00e28db330b8061c73ea6f1a7b7ad9d245f
r300/compiler: Fix bug when lowering KILP on r300 cards

KILP instruction inside IF blocks were being lowered to an unconditional
KIL.  Since r300 doesn't support branching, when the IF's were lowered
to conditional moves, the KIL would always be executed.  This is not a
problem with the mesa state tracker, because the GLSL compiler handles
lowering IF's, but this bug was appearing in the VDPAU state tracker,
which does not use the GLSL compiler.

Note: This is a candidate for the stable branches.
src/gallium/drivers/r300/compiler/radeon_program_alu.c