Modified hw state for big endian computers.
authorJerome Glisse <glisse@freedesktop.org>
Sat, 5 Feb 2005 18:01:21 +0000 (18:01 +0000)
committerJerome Glisse <glisse@freedesktop.org>
Sat, 5 Feb 2005 18:01:21 +0000 (18:01 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index 1360701871309aa4a7faeddcc55456b45a39a74e..da1f1e926a1ca19f57e7bdd159f74cc272e8f560 100644 (file)
@@ -1689,8 +1689,11 @@ void r300ResetHwState(r300ContextPtr r300)
 
        r300->hw.unk2134.cmd[1] = 0x00FFFFFF;
        r300->hw.unk2134.cmd[2] = 0x00000000;
-
+#ifdef MESA_BIG_ENDIAN
+       r300->hw.unk2140.cmd[1] = 0x00000002;
+#elif
        r300->hw.unk2140.cmd[1] = 0x00000000;
+#endif
 
        #if 0 /* Done in setup routing */
        ((drm_r300_cmd_header_t*)r300->hw.vir[0].cmd)->unchecked_state.count = 1;