From: michal Date: Fri, 26 Oct 2007 16:12:25 +0000 (+0100) Subject: Remove llvm dependencies. X-Git-Tag: 062012170305~17580^2~390^2~3685 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e96a53aec7a4eb0236fa31f4682734b9310cb80;p=profile%2Fivi%2Fmesa.git Remove llvm dependencies. --- diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h index 5497f50..dbbf48c 100644 --- a/src/mesa/pipe/p_context.h +++ b/src/mesa/pipe/p_context.h @@ -39,8 +39,6 @@ struct pipe_state_cache; struct pipe_context { struct pipe_winsys *winsys; - void *llvm_execution_engine; - void (*destroy)( struct pipe_context * ); /* @@ -261,8 +259,8 @@ pipe_region_reference(struct pipe_region **ptr, struct pipe_region *region) 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); @@ -289,8 +287,8 @@ pipe_surface_reference(struct pipe_surface **ptr, struct pipe_surface *surf) 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); @@ -307,3 +305,4 @@ pipe_surface_reference(struct pipe_surface **ptr, struct pipe_surface *surf) #endif /* PIPE_CONTEXT_H */ +