diff options
author | Axel Davy <[email protected]> | 2018-03-10 14:23:43 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2018-03-18 22:53:36 +0100 |
commit | 71eae7940ef7fa92e01cdc9afa1172f92d4b489e (patch) | |
tree | 1cea212262969afacb49048cb169234b3224c2da /src/gallium | |
parent | 76fa1f730b7ee232021bb20bae0ead6779941cf1 (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 <[email protected]>
Reviewed-by: Patrick Rudolph <[email protected]>
Tested-by: Dieter Nützel <[email protected]>
CC: "17.3 18.0" <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/nine/stateblock9.c | 2 |
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]); } |