Procházet zdrojové kódy

In intelCopyBuffer() use current context, not dPriv->driContextPriv->driverPrivate.

The later can lead to nested locking attempt with threaded apps.
tags/texman_0_1_20060325
Brian Paul před 20 roky
rodič
revize
8fb2e61801
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10
    0
      src/mesa/drivers/dri/i915/intel_blit.c

+ 10
- 0
src/mesa/drivers/dri/i915/intel_blit.c Zobrazit soubor

@@ -58,7 +58,17 @@ void intelCopyBuffer( const __DRIdrawablePrivate *dPriv )
assert(dPriv->driContextPriv);
assert(dPriv->driContextPriv->driverPrivate);

#if 00
/* XXX This context may not be the current one! Leads to nested locking
* if threading.
*/
intel = (struct intel_context *) dPriv->driContextPriv->driverPrivate;
#else
{
GET_CURRENT_CONTEXT(ctx);
intel = (struct intel_context *) ctx;
}
#endif

bmFinishFence(intel->bm, intel->last_swap_fence);


Načítá se…
Zrušit
Uložit