On Thu, Mar 29, 2018 at 10:37 PM, Andreas Müller
<schnitzelt...@gmail.com> wrote:
> On Thu, Mar 29, 2018 at 10:23 PM, Andreas Müller
> <schnitzelt...@gmail.com> wrote:
>> On Thu, Mar 29, 2018 at 9:29 PM, Khem Raj <raj.k...@gmail.com> wrote:
>>> 64bit with mesa yes, for 32bit I usually test on wayland+Westeros+WPE
>>>
>>> 2018-03-29 12:26 GMT-07:00 Trevor Woerner <twoer...@gmail.com>:
>>>> 64bit RPi or 32?
>>>>
>>>> --
> Have a bit more information now:
>
> By the update I moved from mesa 17.1.7 -> 17.3.7.
>
> I git diff'ed  around a bit:
>
> * Tiling was introduced (or just reworked?)
> * the error message is created in vc4_resource_from_handle. The handle
> coming in has modifier DRM_FORMAT_MOD_LINEAR (0x) but kernel says 'hey
> I support tiling' DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED
> (0x7000000000000001) [1].
>
> With this I'll try some hacks and then ask at mesa mailing list what
> might be reason for it (a really bad timing for this...)
>
> Cheers
>
> [1] 
> https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/vc4/vc4_resource.c?h=17.3#n745
>
LOL with hack attached I can see horses again:)

Andreas
From 281e0934c39408c910a0a6556ad356d0955ca64d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzelt...@gmail.com>
Date: Thu, 29 Mar 2018 22:18:25 +0200
Subject: [PATCH] Hack tiling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Andreas Müller <schnitzelt...@gmail.com>
---
 src/gallium/drivers/vc4/vc4_resource.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index cdcbcc917e..472e6dd618 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -742,6 +742,9 @@ vc4_resource_from_handle(struct pipe_screen *pscreen,
                 whandle->modifier = DRM_FORMAT_MOD_LINEAR;
         } else if (whandle->modifier == DRM_FORMAT_MOD_INVALID) {
                 whandle->modifier = get_tiling.modifier;
+        } else if (whandle->modifier == DRM_FORMAT_MOD_LINEAR && 
+                   get_tiling.modifier == DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED) {
+                whandle->modifier = get_tiling.modifier;
         } else if (whandle->modifier != get_tiling.modifier) {
                 fprintf(stderr,
                         "Modifier 0x%llx vs. tiling (0x%llx) mismatch\n",
-- 
2.14.3

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to