diff options
author | Luca Barbieri <[email protected]> | 2010-08-23 00:31:08 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-08-23 15:09:22 +0200 |
commit | bfaa2577c6474222c79341c0d90685ed579f3414 (patch) | |
tree | 312af7416223bf2587c17e02806c9ae64a7a533c /src/gallium/auxiliary/util/u_dynarray.h | |
parent | eb430b0e948caf02b9f4095d0e1435880073c2aa (diff) |
nvfx: support clip planes sensibly and fix them on nv30
Before, we were discarding the compiled vertex program on each
vertex program change.
Now we compile the program as if there were 6 clip planes and
dynamically patch in an "end program" bit at the right place.
Also, nv30 should now work.
Diffstat (limited to 'src/gallium/auxiliary/util/u_dynarray.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_dynarray.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_dynarray.h b/src/gallium/auxiliary/util/u_dynarray.h index 9d1c1713a7c..980cadf22d1 100644 --- a/src/gallium/auxiliary/util/u_dynarray.h +++ b/src/gallium/auxiliary/util/u_dynarray.h @@ -106,6 +106,9 @@ util_dynarray_trim(struct util_dynarray *buf) #define util_dynarray_pop_ptr(buf, type) (type*)((char*)(buf)->data + ((buf)->size -= sizeof(type))) #define util_dynarray_pop(buf, type) *util_dynarray_pop_ptr(buf, type) #define util_dynarray_contains(buf, type) ((buf)->size >= sizeof(type)) +#define util_dynarray_element(buf, type, idx) ((type*)(buf)->data + (idx)) +#define util_dynarray_begin(buf) ((buf)->data) +#define util_dynarray_end(buf) ((void*)util_dynarray_element((buf), char, (buf)->size)) #endif /* U_DYNARRAY_H */ |