hardware/intel/intel-driver
修訂 | 8d11fd7dd7952551b2d57f900ce1f408a35616a1 (tree) |
---|---|
時間 | 2015-07-01 10:39:30 |
作者 | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
dec/hevc: Use a different equation for metadata tile column buffer on BSW
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
@@ -150,7 +150,10 @@ gen9_hcpd_hevc_decode_init(VADriverContextP ctx, | ||
150 | 150 | size <<= 6; |
151 | 151 | ALLOC_GEN_BUFFER((&gen9_hcpd_context->metadata_tile_line_buffer), "metadata tile line buffer", size); |
152 | 152 | |
153 | - size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 176 + 89 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9; | |
153 | + if (IS_CHERRYVIEW(i965->intel.device_info)) | |
154 | + size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 256 + 9 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9; | |
155 | + else | |
156 | + size = (((gen9_hcpd_context->picture_height_in_pixels + 15) >> 4) * 176 + 89 * gen9_hcpd_context->picture_height_in_ctbs + 1023) >> 9; | |
154 | 157 | size <<= 6; |
155 | 158 | ALLOC_GEN_BUFFER((&gen9_hcpd_context->metadata_tile_column_buffer), "metadata tile column buffer", size); |
156 | 159 |