summaryrefslogtreecommitdiff
path: root/usr/src/common/libdrm/patches/freedreno.patch
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/libdrm/patches/freedreno.patch')
-rw-r--r--usr/src/common/libdrm/patches/freedreno.patch18
1 files changed, 16 insertions, 2 deletions
diff --git a/usr/src/common/libdrm/patches/freedreno.patch b/usr/src/common/libdrm/patches/freedreno.patch
index ebabc4b..622faac 100644
--- a/usr/src/common/libdrm/patches/freedreno.patch
+++ b/usr/src/common/libdrm/patches/freedreno.patch
@@ -1,5 +1,6 @@
---- libdrm-2.4.70/freedreno/kgsl/kgsl_bo.c.orig 2016-09-14 01:56:02.447145494 +0200
-+++ libdrm-2.4.70/freedreno/kgsl/kgsl_bo.c 2016-09-14 01:57:13.859602672 +0200
+diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c
+--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_bo.c Wed Aug 24 12:57:41 2016
++++ libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c Sat Dec 31 12:27:53 2016
@@ -32,7 +32,12 @@
#include "kgsl_priv.h"
@@ -13,3 +14,16 @@
static int set_memtype(struct fd_device *dev, uint32_t handle, uint32_t flags)
{
+diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c
+--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_ringbuffer.c Mon Nov 14 12:55:20 2016
++++ libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c Sat Dec 31 18:02:19 2016
+@@ -146,7 +146,8 @@
+ ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr;
+ ibdesc.hostptr = kgsl_ring->bo->hostptr;
+ ibdesc.sizedwords = 0x145;
+- req.timestamp = (uint32_t)kgsl_ring->bo->hostptr;
++ /* This way to avoid GCC -Wpointer-to-int-cast */
++ req.timestamp = (unsigned int) (unsigned long) kgsl_ring->bo->hostptr;
+ }
+
+ do {