summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/context.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2013-05-28 18:02:58 +0200
committerLeo Liu <[email protected]>2014-10-01 13:21:36 -0400
commit2825ef3abf29b152b12faef8cd5a373c71b9fbaf (patch)
treedc305a6a893c5a5aefe8bbca270dc6bb6c8f9ffe /src/gallium/state_trackers/va/context.c
parent3867933ecbc34ed1f68d735282580ca1e4eedea1 (diff)
st/va: implement vlVa(Create|Destroy|Query|Get)Config
This patch is for application to query configuration, such as profiles, entrypoints, and attributes v2: fix missing profile with query Signed-off-by: Michael Varga <[email protected]> Signed-off-by: Christian König <[email protected]> Signed-off-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/context.c')
-rw-r--r--src/gallium/state_trackers/va/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 71651aa75b9..048c3f2d8cd 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -104,7 +104,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
ctx->version_major = 0;
ctx->version_minor = 1;
*ctx->vtable = vtable;
- ctx->max_profiles = 1;
+ ctx->max_profiles = PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH - PIPE_VIDEO_PROFILE_UNKNOWN;
ctx->max_entrypoints = 1;
ctx->max_attributes = 1;
ctx->max_image_formats = 1;