[PATCH v3 6/8] d3d11: Implement ID3D11DeviceContext::FinishCommandList().

Henri Verbeet hverbeet at gmail.com
Thu May 27 06:52:31 CDT 2021


On Thu, 27 May 2021 at 04:18, Zebediah Figura <z.figura12 at gmail.com> wrote:
> +static ULONG STDMETHODCALLTYPE d3d11_command_list_Release(ID3D11CommandList *iface)
> +{
> +    struct d3d11_command_list *list = impl_from_ID3D11CommandList(iface);
> +    ULONG refcount = InterlockedDecrement(&list->refcount);
> +
> +    TRACE("%p decreasing refcount to %u.\n", list, refcount);
> +
> +    if (!refcount)
> +    {
> +        wined3d_mutex_lock();
> +        wined3d_command_list_decref(list->wined3d_list);
> +        wined3d_mutex_unlock();
> +        ID3D11Device2_Release(list->device);
> +        heap_free(list);
> +    }
> +
> +    return refcount;
> +}
wined3d_private_store_cleanup(&list->private_store);



More information about the wine-devel mailing list