Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: コミット

external/libdrm


コミットメタ情報

リビジョン8e7eb3bcfee06a6c680b6c30753c7a633c1fc85c (tree)
日時2018-09-06 08:14:27
作者Lucas De Marchi <lucas.demarchi@inte...>
コミッターRodrigo Vivi

ログメッセージ

intel: make gen11 use generic gen macro

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

変更サマリ

差分

--- a/intel/intel_chipset.c
+++ b/intel/intel_chipset.c
@@ -35,6 +35,7 @@ static const struct pci_device {
3535 uint16_t gen;
3636 } pciids[] = {
3737 /* Keep ids sorted by gen; latest gen first */
38+ INTEL_ICL_11_IDS(11),
3839 };
3940
4041 bool intel_is_genx(unsigned int devid, int gen)
--- a/intel/intel_chipset.h
+++ b/intel/intel_chipset.h
@@ -261,16 +261,6 @@
261261 #define PCI_CHIP_CANNONLAKE_12 0x5A44
262262 #define PCI_CHIP_CANNONLAKE_13 0x5A4C
263263
264-#define PCI_CHIP_ICELAKE_11_0 0x8A50
265-#define PCI_CHIP_ICELAKE_11_1 0x8A51
266-#define PCI_CHIP_ICELAKE_11_2 0x8A5C
267-#define PCI_CHIP_ICELAKE_11_3 0x8A5D
268-#define PCI_CHIP_ICELAKE_11_4 0x8A52
269-#define PCI_CHIP_ICELAKE_11_5 0x8A5A
270-#define PCI_CHIP_ICELAKE_11_6 0x8A5B
271-#define PCI_CHIP_ICELAKE_11_7 0x8A71
272-#define PCI_CHIP_ICELAKE_11_8 0x8A70
273-
274264 #define IS_MOBILE(devid) ((devid) == PCI_CHIP_I855_GM || \
275265 (devid) == PCI_CHIP_I915_GM || \
276266 (devid) == PCI_CHIP_I945_GM || \
@@ -554,26 +544,14 @@
554544
555545 #define IS_GEN10(devid) (IS_CANNONLAKE(devid))
556546
557-#define IS_ICELAKE_11(devid) ((devid) == PCI_CHIP_ICELAKE_11_0 || \
558- (devid) == PCI_CHIP_ICELAKE_11_1 || \
559- (devid) == PCI_CHIP_ICELAKE_11_2 || \
560- (devid) == PCI_CHIP_ICELAKE_11_3 || \
561- (devid) == PCI_CHIP_ICELAKE_11_4 || \
562- (devid) == PCI_CHIP_ICELAKE_11_5 || \
563- (devid) == PCI_CHIP_ICELAKE_11_6 || \
564- (devid) == PCI_CHIP_ICELAKE_11_7 || \
565- (devid) == PCI_CHIP_ICELAKE_11_8)
566-
567-#define IS_ICELAKE(devid) (IS_ICELAKE_11(devid))
568-
569-#define IS_GEN11(devid) (IS_ICELAKE_11(devid))
570-
571547 /* New platforms use kernel pci ids */
572548 #include <stdbool.h>
573549
574550 bool intel_is_genx(unsigned int devid, int gen);
575551 bool intel_get_genx(unsigned int devid, int *gen);
576552
553+#define IS_GEN11(devid) intel_is_genx(devid, 11)
554+
577555 #define IS_9XX(dev) (IS_GEN3(dev) || \
578556 IS_GEN4(dev) || \
579557 IS_GEN5(dev) || \
@@ -582,7 +560,6 @@ bool intel_get_genx(unsigned int devid, int *gen);
582560 IS_GEN8(dev) || \
583561 IS_GEN9(dev) || \
584562 IS_GEN10(dev) || \
585- IS_GEN11(dev) || \
586563 intel_get_genx(dev, NULL))
587564
588565 #endif /* _INTEL_CHIPSET_H */
旧リポジトリブラウザで表示