[PATCH] resource: Add FreeResourceByTypeValue

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 11 09:01:12 PDT 2011


On Mon, 11 Jul 2011 08:25:26 -0700, Keith Packard <keithp at keithp.com> wrote:
Non-text part: multipart/signed
> On Mon, 11 Jul 2011 15:56:21 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> 
> > Another variant on the FreeResource theme. The purpose of this is to
> > free the exactly matching resource for both the type and value, useful in
> > circumstance where there are a number of identically typed resources
> > associated with an id and only one needs to be removed.
> 
> What is trying to store multiple values using the same XID/Type pair?
> The resource database isn't designed to handle that case;
> FreeResourceByType stops after it frees the first one...

It's the code in intel_dri.c for DRI2FrameEvent to track DrawableGone.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the xorg-devel mailing list