r600g: take into account force_add_cf in pops
authorVadim Girlin <vadimgirlin@gmail.com>
Wed, 3 Aug 2011 11:35:02 +0000 (15:35 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Aug 2011 14:17:50 +0000 (10:17 -0400)
commit2bde0cc95d8db10b6d2c6689ca39c196a81248b0
treeee7015bda27d4cf307738137dca20dcf7710438a
parent6eb94fc3444a300a0419c40cfcf356fdd88bc304
r600g: take into account force_add_cf in pops

When we have two ENDIFs in a row, we shouldn't modify the pop_count
for the same alu clause twice.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38163

Note: this is a candidate for the 7.11 branch.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_shader.c