https://bugs.freedesktop.org/show_bug.cgi?id=39537

           Summary: Build error at get vlVaGetVtable
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev@lists.freedesktop.org
        ReportedBy: ad...@heiher.info


>From ac5c4c49e38b57a47b8dda0e77312ea6e4e7f99d Mon Sep 17 00:00:00 2001
From: Heiher <ad...@heiher.info>
Date: Tue, 26 Jul 2011 16:11:30 +0800
Subject: [PATCH] Fix vlVaGetVtable

---
 src/gallium/state_trackers/va/ftab.c       |    4 ++--
 src/gallium/state_trackers/va/va_private.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/state_trackers/va/ftab.c
b/src/gallium/state_trackers/va/ftab.c
index dc9513e..b2545e9 100644
--- a/src/gallium/state_trackers/va/ftab.c
+++ b/src/gallium/state_trackers/va/ftab.c
@@ -130,7 +130,7 @@ static struct VADriverVTable vtable =
    NULL /* struct VADriverVTableGLX *glx; "Optional" */
 };

-struct VADriverVTable vlVaGetVtable()
+struct VADriverVTable * vlVaGetVtable()
 {
-   return vtable;
+   return &vtable;
 }
diff --git a/src/gallium/state_trackers/va/va_private.h
b/src/gallium/state_trackers/va/va_private.h
index f1023db..a382e05 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -61,7 +61,7 @@ typedef struct {
 VAStatus __vaDriverInit_0_31 (VADriverContextP ctx);

 // Private functions:
-struct VADriverVTable vlVaGetVtable();
+struct VADriverVTable * vlVaGetVtable();

 bool vlCreateHTAB(void);
 void vlDestroyHTAB(void);
-- 
1.7.2.3

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to