From 71eae7940ef7fa92e01cdc9afa1172f92d4b489e Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 10 Mar 2018 14:23:43 +0100 Subject: [PATCH] st/nine: Fix bad tracking of vs textures for NINESBT_ALL MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Patrick Rudolph Tested-by: Dieter Nützel CC: "17.3 18.0" --- 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 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]); } -- 2.30.2