diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-09 15:29:15 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-09 15:44:48 +0800 |
commit | afea5457daba2813f7c6012db5b0e15e2a1f189c (patch) | |
tree | 20efd5af256e28735e1c7780ce9a4160efc80b5d /src | |
parent | 01f7c2c6c5ae6321f3b3cfebc89f73dcb50b30af (diff) | |
download | libva-intel-driver-afea5457daba2813f7c6012db5b0e15e2a1f189c.tar.gz |
Fix Haswell GT3
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 3c9e778718cb4d24695a880afb45e32cdf43a434)
Diffstat (limited to 'src')
-rw-r--r-- | src/i965_render.c | 2 | ||||
-rw-r--r-- | src/intel_driver.h | 54 |
2 files changed, 30 insertions, 26 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 7fa7af7c..fcf63ee2 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -3127,6 +3127,8 @@ i965_render_init(VADriverContextP ctx) } else if (IS_IVB_GT2(i965->intel.device_id) || IS_HSW_GT2(i965->intel.device_id)) { render_state->max_wm_threads = 172; + } else if (IS_HSW_GT3(i965->intel.device_id)) { + render_state->max_wm_threads = 172; } else if (IS_SNB_GT1(i965->intel.device_id)) { render_state->max_wm_threads = 40; } else if (IS_SNB_GT2(i965->intel.device_id)) { diff --git a/src/intel_driver.h b/src/intel_driver.h index cfefa352..29ab50bf 100644 --- a/src/intel_driver.h +++ b/src/intel_driver.h @@ -175,43 +175,43 @@ struct intel_region #define PCI_CHIP_HASWELL_GT1 0x0402 /* Desktop */ #define PCI_CHIP_HASWELL_GT2 0x0412 -#define PCI_CHIP_HASWELL_GT2_PLUS 0x0422 +#define PCI_CHIP_HASWELL_GT3 0x0422 #define PCI_CHIP_HASWELL_M_GT1 0x0406 /* Mobile */ #define PCI_CHIP_HASWELL_M_GT2 0x0416 -#define PCI_CHIP_HASWELL_M_GT2_PLUS 0x0426 +#define PCI_CHIP_HASWELL_M_GT3 0x0426 #define PCI_CHIP_HASWELL_S_GT1 0x040a /* Server */ #define PCI_CHIP_HASWELL_S_GT2 0x041a -#define PCI_CHIP_HASWELL_S_GT2_PLUS 0x042a +#define PCI_CHIP_HASWELL_S_GT3 0x042a #define PCI_CHIP_HASWELL_SDV_GT1 0x0c02 /* Desktop */ #define PCI_CHIP_HASWELL_SDV_GT2 0x0c12 -#define PCI_CHIP_HASWELL_SDV_GT2_PLUS 0x0c22 +#define PCI_CHIP_HASWELL_SDV_GT3 0x0c22 #define PCI_CHIP_HASWELL_SDV_M_GT1 0x0c06 /* Mobile */ #define PCI_CHIP_HASWELL_SDV_M_GT2 0x0c16 -#define PCI_CHIP_HASWELL_SDV_M_GT2_PLUS 0x0c26 +#define PCI_CHIP_HASWELL_SDV_M_GT3 0x0c26 #define PCI_CHIP_HASWELL_SDV_S_GT1 0x0c0a /* Server */ #define PCI_CHIP_HASWELL_SDV_S_GT2 0x0c1a -#define PCI_CHIP_HASWELL_SDV_S_GT2_PLUS 0x0c2a +#define PCI_CHIP_HASWELL_SDV_S_GT3 0x0c2a #define PCI_CHIP_HASWELL_ULT_GT1 0x0A02 /* Desktop */ #define PCI_CHIP_HASWELL_ULT_GT2 0x0A12 -#define PCI_CHIP_HASWELL_ULT_GT2_PLUS 0x0A22 +#define PCI_CHIP_HASWELL_ULT_GT3 0x0A22 #define PCI_CHIP_HASWELL_ULT_M_GT1 0x0A06 /* Mobile */ #define PCI_CHIP_HASWELL_ULT_M_GT2 0x0A16 -#define PCI_CHIP_HASWELL_ULT_M_GT2_PLUS 0x0A26 +#define PCI_CHIP_HASWELL_ULT_M_GT3 0x0A26 #define PCI_CHIP_HASWELL_ULT_S_GT1 0x0A0A /* Server */ #define PCI_CHIP_HASWELL_ULT_S_GT2 0x0A1A -#define PCI_CHIP_HASWELL_ULT_S_GT2_PLUS 0x0A2A +#define PCI_CHIP_HASWELL_ULT_S_GT3 0x0A2A #define PCI_CHIP_HASWELL_CRW_GT1 0x0D02 /* Desktop */ #define PCI_CHIP_HASWELL_CRW_GT2 0x0D12 -#define PCI_CHIP_HASWELL_CRW_GT2_PLUS 0x0D22 +#define PCI_CHIP_HASWELL_CRW_GT3 0x0D22 #define PCI_CHIP_HASWELL_CRW_M_GT1 0x0D06 /* Mobile */ #define PCI_CHIP_HASWELL_CRW_M_GT2 0x0D16 -#define PCI_CHIP_HASWELL_CRW_M_GT2_PLUS 0x0D26 +#define PCI_CHIP_HASWELL_CRW_M_GT3 0x0D26 #define PCI_CHIP_HASWELL_CRW_S_GT1 0x0D0A /* Server */ #define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D1A -#define PCI_CHIP_HASWELL_CRW_S_GT2_PLUS 0x0D2A +#define PCI_CHIP_HASWELL_CRW_S_GT3 0x0D2A #define IS_G45(devid) (devid == PCI_CHIP_IGD_E_G || \ devid == PCI_CHIP_Q45_G || \ @@ -273,23 +273,25 @@ struct intel_region devid == PCI_CHIP_HASWELL_CRW_M_GT2|| \ devid == PCI_CHIP_HASWELL_CRW_S_GT2|| \ devid == PCI_CHIP_HASWELL_ULT_GT2|| \ - devid == PCI_CHIP_HASWELL_ULT_GT2_PLUS|| \ devid == PCI_CHIP_HASWELL_ULT_M_GT2|| \ - devid == PCI_CHIP_HASWELL_ULT_M_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_ULT_S_GT2 || \ - devid == PCI_CHIP_HASWELL_ULT_S_GT2_PLUS || \ - devid == PCI_CHIP_HASWELL_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_M_GT2_PLUS || \ - devid == PCI_CHIP_HASWELL_S_GT2_PLUS || \ - devid == PCI_CHIP_HASWELL_SDV_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_SDV_M_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_SDV_S_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_CRW_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_CRW_M_GT2_PLUS|| \ - devid == PCI_CHIP_HASWELL_CRW_S_GT2_PLUS) + devid == PCI_CHIP_HASWELL_ULT_S_GT2) + +#define IS_HSW_GT3(devid) (devid == PCI_CHIP_HASWELL_GT3 || \ + devid == PCI_CHIP_HASWELL_M_GT3 || \ + devid == PCI_CHIP_HASWELL_S_GT3 || \ + devid == PCI_CHIP_HASWELL_SDV_GT3 || \ + devid == PCI_CHIP_HASWELL_SDV_M_GT3 || \ + devid == PCI_CHIP_HASWELL_SDV_S_GT3 || \ + devid == PCI_CHIP_HASWELL_CRW_GT3 || \ + devid == PCI_CHIP_HASWELL_CRW_M_GT3 || \ + devid == PCI_CHIP_HASWELL_CRW_S_GT3 || \ + devid == PCI_CHIP_HASWELL_ULT_GT3 || \ + devid == PCI_CHIP_HASWELL_ULT_M_GT3 || \ + devid == PCI_CHIP_HASWELL_ULT_S_GT3) #define IS_HASWELL(devid) (IS_HSW_GT1(devid) || \ - IS_HSW_GT2(devid)) + IS_HSW_GT2(devid) || \ + IS_HSW_GT3(devid)) #define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \ IS_HASWELL(devid)) |