Mesa (master): st/nine: Fix bad tracking of vs textures for NINESBT_ALL
Axel Davy
axeldavy at kemper.freedesktop.org
Sun Mar 18 21:54:54 UTC 2018
Module: Mesa
Branch: master
Commit: 71eae7940ef7fa92e01cdc9afa1172f92d4b489e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=71eae7940ef7fa92e01cdc9afa1172f92d4b489e
Author: Axel Davy <davyaxel0 at 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 <davyaxel0 at gmail.com>
Reviewed-by: Patrick Rudolph <siro at das-labor.org>
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
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]);
}
More information about the mesa-commit
mailing list