diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-19 00:12:39 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-05-26 12:06:23 +0800 |
commit | 7fb211f94dae32532d1326565b48d86e558ceb24 (patch) | |
tree | 576d04015b2ee11324dfe72cbec567885b4fb01b /src/i965_media_mpeg2.c | |
parent | e889cefebad2a2fa2230882b8070309f23054247 (diff) |
Simplify some macros
Now it can directly use the information in intel_device_info instead of
checking the pci id.
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit f1b3f83953cd5f6e39900d98b4858a7cb825dee0)
Conflicts:
src/gen8_post_processing.c
src/i965_post_processing.c
src/intel_driver.h
Diffstat (limited to 'src/i965_media_mpeg2.c')
-rw-r--r-- | src/i965_media_mpeg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_media_mpeg2.c b/src/i965_media_mpeg2.c index a5c757f..245c8e7 100644 --- a/src/i965_media_mpeg2.c +++ b/src/i965_media_mpeg2.c @@ -988,7 +988,7 @@ i965_media_mpeg2_dec_context_init(VADriverContextP ctx, struct i965_media_contex sizeof(mpeg2_vld_kernels_gen5[0]))); assert(NUM_MPEG2_VLD_KERNELS <= MAX_INTERFACE_DESC); - if (IS_IRONLAKE(i965->intel.device_id)) + if (IS_IRONLAKE(i965->intel.device_info)) memcpy(i965_mpeg2_context->vld_kernels, mpeg2_vld_kernels_gen5, sizeof(i965_mpeg2_context->vld_kernels)); else memcpy(i965_mpeg2_context->vld_kernels, mpeg2_vld_kernels_gen4, sizeof(i965_mpeg2_context->vld_kernels)); |