[PATCH 1/4] Sync: Fix warning introduced by fences
James Jones
jajones at nvidia.com
Wed Dec 29 10:41:09 PST 2010
On 12/28/10 4:54 AM, "Daniel Stone" <daniel at fooishbar.org> wrote:
> SyncFence is castable to SyncObject.
>
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> ---
> Xext/sync.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Xext/sync.c b/Xext/sync.c
> index d495116..7db4dbf 100644
> --- a/Xext/sync.c
> +++ b/Xext/sync.c
> @@ -886,8 +886,8 @@ SyncCreate(ClientPtr client, XID id, unsigned char type)
> break;
> case SYNC_FENCE:
> resType = RTFence;
> - pSync = dixAllocateObjectWithPrivates(SyncFence,
> - PRIVATE_SYNC_FENCE);
> + pSync = (SyncObject *)dixAllocateObjectWithPrivates(SyncFence,
> +
> PRIVATE_SYNC_FENCE);
This change is already in-flight as part of my general sync cleanups patch.
Thanks,
-James
> break;
> default:
> return NULL;
> --
> 1.7.2.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
nvpublic
More information about the xorg-devel
mailing list