1.multiple instance
 2.memory leak
This commit is contained in:
Zou Nan hai 2009-04-01 15:12:55 +08:00
parent defa6971c6
commit 13c730e003
2 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,7 @@ static void destroy_context(ScrnInfoPtr pScrn, XvMCContextPtr context)
I830Ptr pI830 = I830PTR(pScrn);
private_context = context->driver_priv;
free_drm_memory(pScrn, &private_context->static_buffer);
free_drm_memory(pScrn, &private_context->blocks);
if (IS_G4X(pI830))
free_drm_memory(pScrn, &private_context->slice);
Xfree(private_context);

View File

@ -439,7 +439,7 @@ static void state_base_address()
OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
OUT_BATCH((0xFFFFF<<12) | BASE_ADDRESS_MODIFY);
OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
ADVANCE_BATCH();
}