radeonsi: set CB_COLORn_INFO.SIMPLE_FLOAT
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Aug 2016 10:49:51 +0000 (12:49 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Aug 2016 13:43:36 +0000 (15:43 +0200)
This can help enable some blend optimizations (see the register spec).
Vulkan always sets this.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_state.c

index 8f7203ea9ba0a26ca12fb09bbbe784cdc23f78fc..ebd2b7d571149ab74ce6956c41cc9512216a8ddc 100644 (file)
@@ -2066,6 +2066,7 @@ static void si_initialize_color_surface(struct si_context *sctx,
                S_028C70_COMP_SWAP(swap) |
                S_028C70_BLEND_CLAMP(blend_clamp) |
                S_028C70_BLEND_BYPASS(blend_bypass) |
+               S_028C70_SIMPLE_FLOAT(1) |
                S_028C70_NUMBER_TYPE(ntype) |
                S_028C70_ENDIAN(endian);