From: Axel Davy Date: Sat, 10 Mar 2018 13:23:43 +0000 (+0100) Subject: st/nine: Fix bad tracking of vs textures for NINESBT_ALL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71eae7940ef7fa92e01cdc9afa1172f92d4b489e;p=mesa.git 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 Reviewed-by: Patrick Rudolph Tested-by: Dieter Nützel CC: "17.3 18.0" --- 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]); }