[PATCH 4/6] freedreno: use local drm.h over the system one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Otherwise build will fail, as drm/drm.h is not available.

Cc: Rob Clark <robclark@xxxxxxxxxxxxxxx>
Signed-off-by: Emil Velikov <emil.l.velikov@xxxxxxxxx>
---

Hello Rob,
I'm not entriely sure that this is correct as the libdrm code
is splinckled with variations of drm/drm.h drm.h in both quoted
and angle bracket form.

I believe that the chosen approach could be used througout libdrm
although such a change would be quite evasive and may lead to a
broken build.

This is what works for me, and looks approapriate IMHO

---
 freedreno/freedreno_priv.h | 2 +-
 freedreno/msm/msm_drm.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/freedreno/freedreno_priv.h b/freedreno/freedreno_priv.h
index b10ac90..69256f5 100644
--- a/freedreno/freedreno_priv.h
+++ b/freedreno/freedreno_priv.h
@@ -48,7 +48,7 @@
 
 #include "freedreno_drmif.h"
 #include "freedreno_ringbuffer.h"
-#include "drm/drm.h"
+#include "drm.h"
 
 struct fd_device_funcs {
 	int (*bo_new_handle)(struct fd_device *dev, uint32_t size,
diff --git a/freedreno/msm/msm_drm.h b/freedreno/msm/msm_drm.h
index d3c6207..090c724 100644
--- a/freedreno/msm/msm_drm.h
+++ b/freedreno/msm/msm_drm.h
@@ -19,7 +19,7 @@
 #define __MSM_DRM_H__
 
 #include <stddef.h>
-#include <drm/drm.h>
+#include "drm.h"
 
 /* Please note that modifications to all structs defined here are
  * subject to backwards-compatibility constraints:
-- 
1.8.4

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux