summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2014-01-07 13:10:58 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-01-07 13:12:30 +0800
commit8a3f5dbe9a5b847a629a8a6482bca89a616ef9dc (patch)
treeee000ca4be4349456fcec73a7cc52742b451c1c5
parente2e4898bd60aed48b260a4bc380959d9ae2ec1d9 (diff)
downloadlibva-intel-driver-8a3f5dbe9a5b847a629a8a6482bca89a616ef9dc.tar.gz
libva-intel-driver-8a3f5dbe9a5b847a629a8a6482bca89a616ef9dc.tar.bz2
libva-intel-driver-8a3f5dbe9a5b847a629a8a6482bca89a616ef9dc.zip
VEBOX/bdw: DW0-DW8 are used for dndi parameters in VEBOX_DNDI_STATE
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--src/gen75_vpp_vebox.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index 8e80474..29eb14e 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -131,6 +131,7 @@ VAStatus vpp_surface_scaling(VADriverContextP ctx,
void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_ctx)
{
+ struct i965_driver_data *i965 = i965_driver_data(ctx);
unsigned int* p_table ;
int progressive_dn = 1;
int dndi_top_first = 0;
@@ -155,7 +156,9 @@ void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_c
*/
p_table = (unsigned int *)proc_ctx->dndi_state_table.ptr;
- *p_table ++ = 0; // reserved . w0
+ if (IS_HASWELL(i965->intel.device_id))
+ *p_table ++ = 0; // reserved . w0
+
*p_table ++ = ( 140 << 24 | // denoise STAD threshold . w1
192 << 16 | // dnmh_history_max
0 << 12 | // reserved
@@ -225,6 +228,8 @@ void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_c
13 << 6 | // chr temp diff th
7 ); // chr temp diff low
+ if (IS_GEN8(i965->intel.device_id))
+ *p_table ++ = 0; // parameters for hot pixel,
}
void hsw_veb_iecp_std_table(VADriverContextP ctx, struct intel_vebox_context *proc_ctx)