summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Davy <davyaxel0@gmail.com>2018-03-10 14:23:43 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2018-03-28 16:51:20 +0200
commited835017457ec8b75504e2f4d32fe85515eefe0a (patch)
treeea646ebaf7ed6a32e7b5e0a741fd66009f421c81
parent5baea7bb20b44e603f100ed484a5ac1134a61694 (diff)
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@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> CC: "17.3 18.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 71eae7940ef7fa92e01cdc9afa1172f92d4b489e)
-rw-r--r--src/gallium/state_trackers/nine/stateblock9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c
index 4b7166f0da8..54bf1e3c955 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]);
}