diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-07 09:30:38 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-07 09:30:38 +0100 |
commit | d11a15f04dfaf8ba236d7255c52e67d8602ab806 (patch) | |
tree | 8e52f4d79bc8344e8a27576136d9e517778ff681 | |
parent | d2a26adc8e7b02aea204101f207f740bbde62414 (diff) |
sna/gen2: Compile fix
Be careful when cutting and pasting assertions!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_render_inline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index 4c543179..a796903f 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -47,8 +47,8 @@ static inline float pack_2s(int16_t x, int16_t y) static inline int batch_space(struct sna *sna) { - assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(kgem)); - assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED < sna->kgem.surface); + assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(&sna->kgem)); + assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED <= sna->kgem.surface); return sna->kgem.surface - sna->kgem.nbatch - KGEM_BATCH_RESERVED; } |