We were doing the conversion for surfaces, but not yet
volumes. Now that volumes can do conversion, use it.

Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
 src/gallium/state_trackers/nine/device9.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/gallium/state_trackers/nine/device9.c 
b/src/gallium/state_trackers/nine/device9.c
index 386c777..4a10efc 100644
--- a/src/gallium/state_trackers/nine/device9.c
+++ b/src/gallium/state_trackers/nine/device9.c
@@ -1431,14 +1431,6 @@ NineDevice9_UpdateTexture( struct NineDevice9 *This,
         struct NineVolumeTexture9 *dst = NineVolumeTexture9(dstb);
         struct NineVolumeTexture9 *src = NineVolumeTexture9(srcb);
 
-        /* Wine tests say XRGB -> ARGB should actually do something.
-         * For now do this improper conversion, but in the future it
-         * would be better to implement it properly */
-        user_assert(srcb->format == dstb->format ||
-                    (srcb->format == D3DFMT_A8R8G8B8 && dstb->format == 
D3DFMT_X8R8G8B8) ||
-                    (srcb->format == D3DFMT_X8R8G8B8 && dstb->format == 
D3DFMT_A8R8G8B8),
-                    D3D_OK);
-
         if (src->dirty_box.width == 0)
             return D3D_OK;
         for (l = 0; l <= last_dst_level; ++l, ++m)
-- 
2.8.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to