summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2012-09-12 03:27:46 -0400
committerXiang, Haihao <haihao.xiang@intel.com>2012-09-12 03:31:21 -0400
commit4a439dcdc785ae1dedf574c1692cd84cb57a7ee9 (patch)
tree0d2cc9ea6e81ad799afa44041f92dc2900d66394
parentf842b5021acbf093572a1bd0f86d32ff3e08621e (diff)
downloadvaapi-intel-driver-4a439dcdc785ae1dedf574c1692cd84cb57a7ee9.tar.gz
vaapi-intel-driver-4a439dcdc785ae1dedf574c1692cd84cb57a7ee9.tar.bz2
vaapi-intel-driver-4a439dcdc785ae1dedf574c1692cd84cb57a7ee9.zip
The block mask workaround is only available for Sandy bridge
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rwxr-xr-xsrc/i965_post_processing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 5c5098a..b1cc34c 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -3911,7 +3911,8 @@ gen6_pp_object_walker(VADriverContextP ctx,
for (x = 0; x < x_steps; x++) {
if (!pp_context->pp_set_block_parameter(pp_context, x, y)) {
// some common block parameter update goes here, apply to all pp functions
- update_block_mask_parameter (pp_context, x, y, x_steps, y_steps);
+ if (IS_GEN6(i965->intel.device_id))
+ update_block_mask_parameter (pp_context, x, y, x_steps, y_steps);
*command_ptr++ = (CMD_MEDIA_OBJECT | (command_length_in_dws - 2));
*command_ptr++ = 0;