From: Axel Davy Date: Sun, 25 Sep 2016 11:34:25 +0000 (+0200) Subject: st/nine: Fix texbem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7dd27aed3045174eb91ec5a99c4c619504f6559;p=mesa.git st/nine: Fix texbem Error found with wine tests. nine_shader was expecting another order than the one device9 was using. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index e2d4038e86b..298af86e484 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -2751,10 +2751,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: