[Mesa-dev] [PATCH 5/5] st/va: declare vlVaBuffer before vlVaContext
Juan A. Suarez Romero
jasuarez at igalia.com
Thu Nov 24 12:36:05 UTC 2016
And declare coded_buf in vlVaContext as "vlVaBuffer *" instead of
"struct vlVaBuffer *".
This fixes several warnings later about assignment from incompatible
pointer type.
---
src/gallium/state_trackers/va/va_private.h | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index c9a6a41..054cfb3 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -220,6 +220,20 @@ typedef struct {
} vlVaSubpicture;
typedef struct {
+ VABufferType type;
+ unsigned int size;
+ unsigned int num_elements;
+ void *data;
+ struct {
+ struct pipe_resource *resource;
+ struct pipe_transfer *transfer;
+ } derived_surface;
+ unsigned int export_refcount;
+ VABufferInfo export_state;
+ unsigned int coded_size;
+} vlVaBuffer;
+
+typedef struct {
struct pipe_video_codec templat, *decoder;
struct pipe_video_buffer *target;
union {
@@ -242,7 +256,7 @@ typedef struct {
} mpeg4;
struct vl_deint_filter *deint;
- struct vlVaBuffer *coded_buf;
+ vlVaBuffer *coded_buf;
int target_id;
} vlVaContext;
@@ -254,20 +268,6 @@ typedef struct {
} vlVaConfig;
typedef struct {
- VABufferType type;
- unsigned int size;
- unsigned int num_elements;
- void *data;
- struct {
- struct pipe_resource *resource;
- struct pipe_transfer *transfer;
- } derived_surface;
- unsigned int export_refcount;
- VABufferInfo export_state;
- unsigned int coded_size;
-} vlVaBuffer;
-
-typedef struct {
struct pipe_video_buffer templat, *buffer;
struct util_dynarray subpics; /* vlVaSubpicture */
VAContextID ctx;
--
2.7.4
More information about the mesa-dev
mailing list