diff options
author | Midhun Kodiyath <midhunchandra.kodiyath@intel.com> | 2015-08-10 08:34:48 -0700 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-08-13 13:55:36 +0800 |
commit | 49a27ed0f645fdd828b237a1e8c2628a9b4b1f15 (patch) | |
tree | d5075f163ab256126202d5fa53eef36e0a652152 /src/intel | |
parent | 8b9672ae40c642b7ff4c9b6755c4df7b84129445 (diff) |
Set proper Vendor ID
Device ID and vendor ID are not same.Set the correct vendor ID.
Signed-off-by: Midhun Kodiyath <midhunchandra.kodiyath@intel.com>
Reviewed-by: Song, Ruiling <ruiling.song@intel.com>
Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/intel_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c index 9c727774..507c910e 100644 --- a/src/intel/intel_driver.c +++ b/src/intel/intel_driver.c @@ -808,10 +808,10 @@ intel_update_device_info(cl_device_id device) /* Prefer driver-queried max compute units if supported */ if (!drm_intel_get_eu_total(driver->fd, &eu_total)) device->max_compute_unit = eu_total; - else if (IS_CHERRYVIEW(device->vendor_id)) + else if (IS_CHERRYVIEW(device->device_id)) printf(CHV_CONFIG_WARNING); #else - if (IS_CHERRYVIEW(device->vendor_id)) + if (IS_CHERRYVIEW(device->device_id)) printf(CHV_CONFIG_WARNING); #endif @@ -821,10 +821,10 @@ intel_update_device_info(cl_device_id device) /* Prefer driver-queried subslice count if supported */ if (!drm_intel_get_subslice_total(driver->fd, &subslice_total)) device->sub_slice_count = subslice_total; - else if (IS_CHERRYVIEW(device->vendor_id)) + else if (IS_CHERRYVIEW(device->device_id)) printf(CHV_CONFIG_WARNING); #else - if (IS_CHERRYVIEW(device->vendor_id)) + if (IS_CHERRYVIEW(device->device_id)) printf(CHV_CONFIG_WARNING); #endif |