Commit 3fcb40f9 authored by Eric Anholt's avatar Eric Anholt
Browse files

- 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.
parent a4f352a8
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment