<html><head></head><body><div class="-x-evo-paragraph -x-evo-top-signature-spacer"><br></div><div>On Wed, 2016-09-28 at 08:42 +0800, Xiang, Haihao wrote:</div><blockquote type="cite"><pre>Signed-off-by: Xiang, Haihao <<a href="haihao.xiang@intel.com>
">haihao.xiang@intel.com>
</a></pre></blockquote><div><br></div><div>lgtm, applied.</div><div><br></div><div>Now we just need the kernel patches merged and we should be good.</div><div><br></div><div>Thanks,</div><div><br></div><div>Sean</div><div><br></div><div><br></div><blockquote type="cite"><pre>---
src/intel_driver.c | 12 ++++++++++++
src/intel_driver.h | 1 +
2 files changed, 13 insertions(+)
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 96c1994..bb19401 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -44,6 +44,12 @@ uint32_t g_intel_debug_option_flags = 0;
#define LOCAL_I915_PARAM_HAS_BSD2 30
#endif
+#ifdef I915_PARAM_HAS_HUC
+#define LOCAL_I915_PARAM_HAS_HUC I915_PARAM_HAS_HUC
+#else
+#define LOCAL_I915_PARAM_HAS_HUC 42
+#endif
+
static Bool
intel_driver_get_param(struct intel_driver_data *intel, int param, int *value)
{
@@ -130,6 +136,12 @@ intel_driver_init(VADriverContextP ctx)
if (intel_driver_get_param(intel, LOCAL_I915_PARAM_HAS_BSD2, &ret_value))
intel->has_bsd2 = !!ret_value;
+ intel->has_huc = 0;
+ ret_value = 0;
+
+ if (intel_driver_get_param(intel, LOCAL_I915_PARAM_HAS_HUC, &ret_value))
+ intel->has_huc = !!ret_value;
+
intel_driver_get_revid(intel, &intel->revision);
return true;
}
diff --git a/src/intel_driver.h b/src/intel_driver.h
index c9a80c8..dcdc03b 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -181,6 +181,7 @@ struct intel_driver_data
unsigned int has_blt : 1; /* Flag: has BLT unit? */
unsigned int has_vebox : 1; /* Flag: has VEBOX unit */
unsigned int has_bsd2 : 1; /* Flag: has the second BSD video ring unit */
+ unsigned int has_huc : 1; /* Flag: has a fully loaded HuC firmware? */
const struct intel_device_info *device_info;
};
</pre></blockquote><div><br></div></body></html>