Module: Mesa
Branch: master
Commit: 71eae7940ef7fa92e01cdc9afa1172f92d4b489e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=71eae7940ef7fa92e01cdc9afa1172f92d4b489e

Author: Axel Davy <davyax...@gmail.com>
Date:   Sat Mar 10 14:23:43 2018 +0100

st/nine: Fix bad tracking of vs textures for NINESBT_ALL

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 <davyax...@gmail.com>
Reviewed-by: Patrick Rudolph <s...@das-labor.org>
Tested-by: Dieter Nützel <die...@nuetzel-hh.de>

CC: "17.3 18.0" <mesa-sta...@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]);
     }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to