radeonsi: fix point sprites
authorMarek Olšák <marek.olsak@amd.com>
Mon, 23 Feb 2015 10:39:53 +0000 (11:39 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 23 Feb 2015 10:40:55 +0000 (11:40 +0100)
Broken by a27b74819ad375e8c0bc88e13f42c951d2b5cd6a.

This fix is critical and should be ported to stable ASAP.

Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeonsi/si_state_shaders.c

index dea99ea92b81ef2a00a65fbbc9d1f6d61c6f4658..3827c7b662d6609282a59473e5c61f75c2c24b26 100644 (file)
@@ -661,7 +661,7 @@ bcolor:
                        }
                }
 
-               if (j == vsinfo->num_outputs) {
+               if (j == vsinfo->num_outputs & !G_028644_PT_SPRITE_TEX(tmp)) {
                        /* No corresponding output found, load defaults into input.
                         * Don't set any other bits.
                         * (FLAT_SHADE=1 completely changes behavior) */