summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-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 5497f50f73d..dbbf48c5760 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 */
+