summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-26 17:12:25 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:01:10 +0100
commit0e96a53aec7a4eb0236fa31f4682734b9310cb80 (patch)
tree99fda493e0f5ef5942dbdea351d9185661034f10 /src
parent79d8e78442c08082083261d517cdf260e0bd309f (diff)
Remove llvm dependencies.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/p_context.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h
index 5497f50f73..dbbf48c576 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 */
+