[Mesa-dev] [PATCH 40/75] st/nine: Fix texbem

Axel Davy axel.davy at ens.fr
Wed Oct 5 20:09:13 UTC 2016


Error found with wine tests.
nine_shader was expecting another order
than the one device9 was using.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
 src/gallium/state_trackers/nine/device9.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c
index cacba56..57d8c64 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -2747,10 +2747,10 @@ NineDevice9_SetTextureStageState( struct NineDevice9 *This,
     case D3DTSS_BUMPENVMAT00:
         bumpmap_index = 4 * Stage;
         break;
-    case D3DTSS_BUMPENVMAT10:
+    case D3DTSS_BUMPENVMAT01:
         bumpmap_index = 4 * Stage + 1;
         break;
-    case D3DTSS_BUMPENVMAT01:
+    case D3DTSS_BUMPENVMAT10:
         bumpmap_index = 4 * Stage + 2;
         break;
     case D3DTSS_BUMPENVMAT11:
-- 
2.10.0



More information about the mesa-dev mailing list