mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 15:40:40 +02:00
- Disable libdrm verbosity. It isn't important enough yet to make a
run-time flag for it.
- Fix the (void)atic; tricks to quiet unused variable warnings in ATI
template files. Mixing statements and variable defines works in newer
compilers, but not pdx's.
This commit is contained in:
parent
a4f352a8df
commit
3fcb40f94f
2 changed files with 6 additions and 6 deletions
|
|
@ -25,15 +25,15 @@
|
|||
|
||||
#ifdef USE_DMA
|
||||
#define TAG(x) x##DMA
|
||||
#define LOCALS (void)atic; \
|
||||
RING_LOCALS
|
||||
#define LOCALS RING_LOCALS; \
|
||||
(void)atic
|
||||
#define BEGIN(x) BEGIN_RING(x * 2)
|
||||
#define OUT_REG(reg, val) OUT_RING_REG(reg, val)
|
||||
#define END() ADVANCE_RING()
|
||||
#else
|
||||
#define TAG(x) x##MMIO
|
||||
#define LOCALS (void)atis; \
|
||||
char *mmio = atic->reg_base
|
||||
#define LOCALS char *mmio = atic->reg_base; \
|
||||
(void)atis
|
||||
#define BEGIN(x) ATIWaitAvailMMIO(x)
|
||||
#define OUT_REG(reg, val) MMIO_OUT32((mmio), (reg), (val))
|
||||
#define END()
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
#ifdef USE_DMA
|
||||
#define TAG(x) x##DMA
|
||||
#define LOCALS (void)atic; \
|
||||
RING_LOCALS
|
||||
#define LOCALS RING_LOCALS; \
|
||||
(void)atic
|
||||
#define BEGIN(x) BEGIN_RING(x * 2)
|
||||
#define OUT_REG(reg, val) OUT_RING_REG(reg, val)
|
||||
#define END() ADVANCE_RING()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue