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>
This commit is contained in:
Axel Davy 2018-03-10 14:23:43 +01:00
parent 76fa1f730b
commit 71eae7940e

View file

@ -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]);
}