From f955218bf165905ac0f75dad64b7f58085aef51f Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Sat, 5 Feb 2005 18:01:21 +0000 Subject: [PATCH] Modified hw state for big endian computers. --- src/mesa/drivers/dri/r300/r300_state.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index 13607018713..da1f1e926a1 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -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; -- 2.30.2