gallium: tex surface checkpoint

This commit is contained in:
Keith Whitwell
2008-05-01 11:07:21 +01:00
parent 7584bcf3f7
commit c9ed86a964
37 changed files with 466 additions and 268 deletions

View File

@@ -204,7 +204,10 @@ mem_dup(const void *src, uint size)
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
#ifndef Elements
#define Elements(x) (sizeof(x)/sizeof((x)[0]))
#endif
#define Offset(TYPE, MEMBER) ((unsigned)&(((TYPE *)NULL)->MEMBER))
/**