17,7 → 17,7 |
dst->drawable.height > sna->render.max_3d_size); |
} |
|
static inline float pack_2s(int16_t x, int16_t y) |
static force_inline float pack_2s(int16_t x, int16_t y) |
{ |
union { |
struct sna_coordinate p; |
28,21 → 28,21 |
return u.f; |
} |
|
static inline int vertex_space(struct sna *sna) |
static force_inline int vertex_space(struct sna *sna) |
{ |
return sna->render.vertex_size - sna->render.vertex_used; |
} |
static inline void vertex_emit(struct sna *sna, float v) |
static force_inline void vertex_emit(struct sna *sna, float v) |
{ |
assert(sna->render.vertex_used < sna->render.vertex_size); |
sna->render.vertices[sna->render.vertex_used++] = v; |
} |
static inline void vertex_emit_2s(struct sna *sna, int16_t x, int16_t y) |
static force_inline void vertex_emit_2s(struct sna *sna, int16_t x, int16_t y) |
{ |
vertex_emit(sna, pack_2s(x, y)); |
} |
|
static inline int batch_space(struct sna *sna) |
static force_inline int batch_space(struct sna *sna) |
{ |
assert(sna->kgem.nbatch <= KGEM_BATCH_SIZE(&sna->kgem)); |
assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED <= sna->kgem.surface); |
49,7 → 49,7 |
return sna->kgem.surface - sna->kgem.nbatch - KGEM_BATCH_RESERVED; |
} |
|
static inline void batch_emit(struct sna *sna, uint32_t dword) |
static force_inline void batch_emit(struct sna *sna, uint32_t dword) |
{ |
assert(sna->kgem.mode != KGEM_NONE); |
assert(sna->kgem.nbatch + KGEM_BATCH_RESERVED < sna->kgem.surface); |
56,7 → 56,7 |
sna->kgem.batch[sna->kgem.nbatch++] = dword; |
} |
|
static inline void batch_emit_float(struct sna *sna, float f) |
static force_inline void batch_emit_float(struct sna *sna, float f) |
{ |
union { |
uint32_t dw; |
67,5 → 67,4 |
} |
|
|
|
#endif /* SNA_RENDER_INLINE_H */ |