summaryrefslogtreecommitdiff
path: root/src/i965_media.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-02-22 10:33:28 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-02-22 10:33:28 +0800
commita28a9dc5eddb300174d971d40dcf1ebdfe27c4b2 (patch)
treeb167c0af22d5fee72bbe65705c2989cf5bf398a8 /src/i965_media.c
parent94271f714fed9c175037ca47e101228926b2dde3 (diff)
downloadvaapi-intel-driver-a28a9dc5eddb300174d971d40dcf1ebdfe27c4b2.tar.gz
vaapi-intel-driver-a28a9dc5eddb300174d971d40dcf1ebdfe27c4b2.tar.bz2
vaapi-intel-driver-a28a9dc5eddb300174d971d40dcf1ebdfe27c4b2.zip
Fix the interface for internal context initialization
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_media.c')
-rw-r--r--src/i965_media.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i965_media.c b/src/i965_media.c
index f43feed..2b940c7 100644
--- a/src/i965_media.c
+++ b/src/i965_media.c
@@ -321,7 +321,7 @@ i965_media_context_destroy(void *hw_context)
}
struct hw_context *
-g4x_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
+g4x_dec_hw_context_init(VADriverContextP ctx, struct object_config *obj_config)
{
struct intel_driver_data *intel = intel_driver_data(ctx);
struct i965_media_context *media_context = calloc(1, sizeof(struct i965_media_context));
@@ -330,7 +330,7 @@ g4x_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
media_context->base.run = i965_media_decode_picture;
media_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_RENDER);
- switch (profile) {
+ switch (obj_config->profile) {
case VAProfileMPEG2Simple:
case VAProfileMPEG2Main:
i965_media_mpeg2_dec_context_init(ctx, media_context);
@@ -351,7 +351,7 @@ g4x_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
}
struct hw_context *
-ironlake_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
+ironlake_dec_hw_context_init(VADriverContextP ctx, struct object_config *obj_config)
{
struct intel_driver_data *intel = intel_driver_data(ctx);
struct i965_media_context *media_context = calloc(1, sizeof(struct i965_media_context));
@@ -360,7 +360,7 @@ ironlake_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
media_context->base.run = i965_media_decode_picture;
media_context->base.batch = intel_batchbuffer_new(intel, I915_EXEC_RENDER);
- switch (profile) {
+ switch (obj_config->profile) {
case VAProfileMPEG2Simple:
case VAProfileMPEG2Main:
i965_media_mpeg2_dec_context_init(ctx, media_context);