diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2014-04-19 00:12:37 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-05-26 11:59:10 +0800 |
commit | 5684002ddffc89398755bccf3962febf88e1dd2d (patch) | |
tree | 21a826ca7d8392f729d9fa1deebfbcc0c15d9b5a /src/i965_media_h264.c | |
parent | ae70674e879aa40fe4cd3a01e66b239d642519b5 (diff) |
Remove URB_SIZE()
Instead directly use the value stored in intel_device_info
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit a0fe5a6262f9ff1398a512c83d193556bbd0eae9)
Diffstat (limited to 'src/i965_media_h264.c')
-rw-r--r-- | src/i965_media_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_media_h264.c b/src/i965_media_h264.c index f6c8c11..abfecef 100644 --- a/src/i965_media_h264.c +++ b/src/i965_media_h264.c @@ -901,7 +901,7 @@ i965_media_h264_dec_context_init(VADriverContextP ctx, struct i965_media_context media_context->urb.cs_start = media_context->urb.vfe_start + media_context->urb.num_vfe_entries * media_context->urb.size_vfe_entry; assert(media_context->urb.cs_start + - media_context->urb.num_cs_entries * media_context->urb.size_cs_entry <= URB_SIZE((&i965->intel))); + media_context->urb.num_cs_entries * media_context->urb.size_cs_entry <= i965->intel.device_info->urb_size); /* hook functions */ media_context->media_states_setup = i965_media_h264_states_setup; |