diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-06 22:11:32 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-12-11 21:39:40 +0000 |
commit | e017542d10e875260e3eef1b0369f4ea106df0f5 (patch) | |
tree | 577bf674cb2431a38d938c3e49f7d371ae6bcb30 /src/sna/sna_render_inline.h | |
parent | 610af0c70e755062b36ba9756fbc4288518b7c35 (diff) |
sna/gen8: Initial backend for Broadwell
Should match the functionality of the earlier generations, but untuned.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render_inline.h')
-rw-r--r-- | src/sna/sna_render_inline.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index a1b97be8..3f74341f 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -56,6 +56,14 @@ static force_inline void batch_emit(struct sna *sna, uint32_t dword) sna->kgem.batch[sna->kgem.nbatch++] = dword; } +static force_inline void batch_emit64(struct sna *sna, uint64_t qword) +{ + assert(sna->kgem.mode != KGEM_NONE); + assert(sna->kgem.nbatch + 2 + KGEM_BATCH_RESERVED < sna->kgem.surface); + *(uint64_t *)(sna->kgem.batch+sna->kgem.nbatch) = qword; + sna->kgem.nbatch += 2; +} + static force_inline void batch_emit_float(struct sna *sna, float f) { union { |