[Mesa-stable] [PATCH 2/4] st/nine: Fix bad tracking of vs textures for NINESBT_ALL

Axel Davy davyaxel0 at gmail.com
Tue Mar 13 22:09:40 UTC 2018


Stateblocks with NINESBT_ALL should track all textures.
For better performance they have a faster path which
copies all the required.

This path was only tracking ps textures.

Fixes: https://github.com/iXit/Mesa-3D/issues/303

Signed-off-by: Axel Davy <davyaxel0 at gmail.com>

CC: "17.3 18.0" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/state_trackers/nine/stateblock9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c
index 4b7166f0da..54bf1e3c95 100644
--- a/src/gallium/state_trackers/nine/stateblock9.c
+++ b/src/gallium/state_trackers/nine/stateblock9.c
@@ -454,7 +454,7 @@ nine_state_copy_common_all(struct NineDevice9 *device,
 
     /* Textures */
     if (1) {
-        for (i = 0; i < device->caps.MaxSimultaneousTextures; i++)
+        for (i = 0; i < NINE_MAX_SAMPLERS; i++)
             NineStateBlock9_BindTexture(device, apply, &dst->texture[i], src->texture[i]);
     }
 
-- 
2.16.2



More information about the mesa-stable mailing list