OSDN Git Service

radeonsi: implement DCC fast clear swizzle constraints more accurately
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 Apr 2018 01:43:28 +0000 (21:43 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 27 Apr 2018 21:56:04 +0000 (17:56 -0400)
commitc732d069b3a4a5fefb353d01d17834ce2c548ae6
tree3ec2bcc1754ee05c9886612f9300fcd503d8cf4b
parent9ef423f72038e35ef914e081876ddabcd05b93a9
radeonsi: implement DCC fast clear swizzle constraints more accurately

Reduce swizzle constraints to the ALPHA_IS_ON_MSB constraint and the clear
value of 1.

This significantly changes the DCC fast clear code, and fixes fast clear
for RGB formats without alpha.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_clear.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c