diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-07 19:40:43 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-04-07 19:40:43 +0200 |
commit | d5d93a31580cf58744b4d186a4ab8fac09743a33 (patch) | |
tree | bf12baafd02e373384c5e4f624a299ff08190fb5 /src/gallium/winsys/dri/intel/intel_context.c | |
parent | d945e8ddd7cc8f2882ea0a2336bc2e534a1bca78 (diff) |
i915: Pulled in changes from i915tex
Diffstat (limited to 'src/gallium/winsys/dri/intel/intel_context.c')
-rw-r--r-- | src/gallium/winsys/dri/intel/intel_context.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_context.c b/src/gallium/winsys/dri/intel/intel_context.c index 8eba33c313..cc2fc11c5e 100644 --- a/src/gallium/winsys/dri/intel/intel_context.c +++ b/src/gallium/winsys/dri/intel/intel_context.c @@ -162,6 +162,7 @@ intelCreateContext(const __GLcontextModes * visual, * memory pools */ DRM_LIGHT_LOCK(sPriv->fd, &sPriv->pSAREA->lock, driContextPriv->hHWContext); + // ZZZ JB should be per screen and not be done per context havePools = intelCreatePools(sPriv); DRM_UNLOCK(sPriv->fd, &sPriv->pSAREA->lock, driContextPriv->hHWContext); if (!havePools) @@ -234,12 +235,12 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) if (intel->last_swap_fence) { driFenceFinish(intel->last_swap_fence, DRM_FENCE_TYPE_EXE, GL_TRUE); - driFenceUnReference(intel->last_swap_fence); + driFenceUnReference(&intel->last_swap_fence); intel->last_swap_fence = NULL; } if (intel->first_swap_fence) { driFenceFinish(intel->first_swap_fence, DRM_FENCE_TYPE_EXE, GL_TRUE); - driFenceUnReference(intel->first_swap_fence); + driFenceUnReference(&intel->first_swap_fence); intel->first_swap_fence = NULL; } |