Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-libdrm: Commit

external/libdrm


Commit MetaInfo

Revisiond389332ce22877ee45d5814c36f460b30a58f5f1 (tree)
Time2019-10-18 03:07:53
AuthorMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Log Message

intel: annotate the intel genx helpers as public

intel_is_genx() and intel_get_genx() which are now private
were actually being used by drm_gralloc_intel,
this patch annotates them as drm_public

Change Summary

Incremental Difference

--- a/intel/intel_chipset.c
+++ b/intel/intel_chipset.c
@@ -46,7 +46,7 @@ static const struct pci_device {
4646 INTEL_SKL_IDS(9),
4747 };
4848
49-drm_private bool intel_is_genx(unsigned int devid, int gen)
49+drm_public bool intel_is_genx(unsigned int devid, int gen)
5050 {
5151 const struct pci_device *p,
5252 *pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
@@ -68,7 +68,7 @@ drm_private bool intel_is_genx(unsigned int devid, int gen)
6868 return false;
6969 }
7070
71-drm_private bool intel_get_genx(unsigned int devid, int *gen)
71+drm_public bool intel_get_genx(unsigned int devid, int *gen)
7272 {
7373 const struct pci_device *p,
7474 *pend = pciids + sizeof(pciids) / sizeof(pciids[0]);
--- a/intel/intel_chipset.h
+++ b/intel/intel_chipset.h
@@ -335,8 +335,8 @@
335335 #include <stdbool.h>
336336 #include <libdrm_macros.h>
337337
338-drm_private bool intel_is_genx(unsigned int devid, int gen);
339-drm_private bool intel_get_genx(unsigned int devid, int *gen);
338+drm_public bool intel_is_genx(unsigned int devid, int gen);
339+drm_public bool intel_get_genx(unsigned int devid, int *gen);
340340
341341 #define IS_GEN9(devid) intel_is_genx(devid, 9)
342342 #define IS_GEN10(devid) intel_is_genx(devid, 10)
Show on old repository browser