ac: update enabled channels mask when optimizing PARAM exports
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Mar 2018 10:54:21 +0000 (11:54 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 6 Mar 2018 09:37:52 +0000 (10:37 +0100)
commit675dde13b2decc92a1babd545289a9912323861c
tree451263fcef22dfb1c560ba1a02b13f905cedb0c4
parentc24abae9dcd6c83ae9e90efbda5936be89dabb0e
ac: update enabled channels mask when optimizing PARAM exports

When the mask is not 0xf we need to update the number of
enabled channels, otherwise the hardware won't emit the
components that are combined.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_build.c