summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <[email protected]>2016-12-02 16:26:51 +0000
committerEmil Velikov <[email protected]>2016-12-05 17:03:57 +0000
commit48416b6f4d3ffa46168b8b4a46a262562cd7473a (patch)
tree51f47311f9474a6f2019cbaaa8c0ef20114bf16d /src/gallium/state_trackers
parent5a585d019e64462625128c4605c4bf48b957c70d (diff)
st/va: declare vlVaBuffer before vlVaContext
And declare coded_buf in vlVaContext as "vlVaBuffer *" instead of "struct vlVaBuffer *". This fixes several warnings later about assignment from incompatible pointer type. Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/va/va_private.h30
1 files 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 900abbc5904..8faec106ea2 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -221,6 +221,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 {
@@ -243,7 +257,7 @@ typedef struct {
} mpeg4;
struct vl_deint_filter *deint;
- struct vlVaBuffer *coded_buf;
+ vlVaBuffer *coded_buf;
int target_id;
bool first_single_submitted;
int gop_coeff;
@@ -257,20 +271,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;