\r
#include "pipe/p_compiler.h"\r
\r
-typedef ushort (*pt_elt_func)( const void *elts, ushort idx );\r
+typedef unsigned (*pt_elt_func)( const void *elts, unsigned idx );\r
\r
\r
/* The "front end" - prepare sets of fetch, draw elements for the\r
* the start value into a pointer. \r
*/\r
\r
-static ushort elt_uint( const void *elts, ushort idx )\r
+static unsigned elt_uint( const void *elts, unsigned idx )\r
{\r
return *(((const uint *)elts) + idx);\r
}\r
\r
-static ushort elt_ushort( const void *elts, ushort idx )\r
+static unsigned elt_ushort( const void *elts, unsigned idx )\r
{\r
return *(((const ushort *)elts) + idx);\r
}\r
\r
-static ushort elt_ubyte( const void *elts, ushort idx )\r
+static unsigned elt_ubyte( const void *elts, unsigned idx )\r
{\r
return *(((const ubyte *)elts) + idx);\r
}\r
\r
-static ushort elt_vert( const void *elts, ushort idx )\r
+static unsigned elt_vert( const void *elts, unsigned idx )\r
{\r
return (const ubyte *)elts - (const ubyte *)NULL + idx;\r
}\r
struct vcache_frontend {
struct draw_pt_front_end base;
- ushort in[CACHE_MAX];
+ unsigned in[CACHE_MAX];
ushort out[CACHE_MAX];
ushort draw_elts[DRAW_MAX];
}
#endif
- if (vcache->draw_count)
+ if (vcache->draw_count) {
vcache->middle->run( vcache->middle,
vcache->output_prim,
vcache->fetch_elts,
vcache->fetch_count,
vcache->draw_elts,
vcache->draw_count );
+ }
memset(vcache->in, ~0, sizeof(vcache->in));
vcache->fetch_count = 0;
static void vcache_elt( struct vcache_frontend *vcache,
unsigned felt )
{
- // ushort felt = elt(draw, i);
-
- ushort idx = felt % CACHE_MAX;
+ unsigned idx = felt % CACHE_MAX;
if (vcache->in[idx] != felt) {
assert(vcache->fetch_count < FETCH_MAX);