mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
r300: Fix R300_CMD_SCRATCH on big endian.
This commit is contained in:
parent
b1b7bc66a4
commit
5f3ab230ea
2 changed files with 11 additions and 2 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#define RADEON_CS_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include "drm.h"
|
||||
#include "radeon_drm.h"
|
||||
|
||||
|
|
@ -194,4 +195,13 @@ static inline void radeon_cs_write_dword(struct radeon_cs *cs, uint32_t dword)
|
|||
}
|
||||
}
|
||||
|
||||
static inline void radeon_cs_write_qword(struct radeon_cs *cs, uint64_t qword)
|
||||
{
|
||||
|
||||
memcpy(cs->packets + cs->cdw, &qword, sizeof(qword));
|
||||
cs->cdw+=2;
|
||||
if (cs->section) {
|
||||
cs->section_cdw+=2;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -288,8 +288,7 @@ static int cs_emit(struct radeon_cs *cs)
|
|||
age.scratch.n_bufs = 1;
|
||||
age.scratch.flags = 0;
|
||||
radeon_cs_write_dword(cs, age.u);
|
||||
radeon_cs_write_dword(cs, ull & 0xffffffff);
|
||||
radeon_cs_write_dword(cs, ull >> 32);
|
||||
radeon_cs_write_qword(cs, ull);
|
||||
radeon_cs_write_dword(cs, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue