struct pipe_context {
struct pipe_winsys *winsys;
- void *llvm_execution_engine;
-
void (*destroy)( struct pipe_context * );
/*
if (*ptr) {
/* unreference the old thing */
struct pipe_region *oldReg = *ptr;
+ assert(oldReg->refcount > 0);
oldReg->refcount--;
- assert(oldReg->refcount >= 0);
if (oldReg->refcount == 0) {
/* free the old region */
assert(oldReg->map_refcount == 0);
if (*ptr) {
/* unreference the old thing */
struct pipe_surface *oldSurf = *ptr;
+ assert(oldSurf->refcount > 0);
oldSurf->refcount--;
- assert(oldSurf->refcount >= 0);
if (oldSurf->refcount == 0) {
/* free the old region */
pipe_region_reference(&oldSurf->region, NULL);
#endif /* PIPE_CONTEXT_H */
+