revert 213 commits (to 56092) from the last month. 10 still need work to resolve...
[AROS.git] / workbench / libs / mesa / src / gallium / auxiliary / util / u_ringbuffer.h
blob85f0ad6c1f6746104700ae691f57420f7e728d9b
2 #ifndef UTIL_RINGBUFFER_H
3 #define UTIL_RINGBUFFER_H
5 #include "pipe/p_compiler.h"
6 #include "pipe/p_defines.h" /* only for pipe_error! */
8 /* Generic header
9 */
10 struct util_packet {
11 unsigned dwords:8;
12 unsigned data24:24;
15 struct util_ringbuffer;
17 struct util_ringbuffer *util_ringbuffer_create( unsigned dwords );
19 void util_ringbuffer_destroy( struct util_ringbuffer *ring );
21 void util_ringbuffer_enqueue( struct util_ringbuffer *ring,
22 const struct util_packet *packet );
24 enum pipe_error util_ringbuffer_dequeue( struct util_ringbuffer *ring,
25 struct util_packet *packet,
26 unsigned max_dwords,
27 boolean wait );
29 #endif