Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752872AbdDJQK3 (ORCPT ); Mon, 10 Apr 2017 12:10:29 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:36727 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbdDJQK0 (ORCPT ); Mon, 10 Apr 2017 12:10:26 -0400 MIME-Version: 1.0 In-Reply-To: <20170410180941.43922e25@eldfell> References: <20170410101202.19229-1-kraxel@redhat.com> <20170410161214.305f5daf@eldfell> <1491833847.30990.77.camel@redhat.com> <20170410180941.43922e25@eldfell> From: Ilia Mirkin Date: Mon, 10 Apr 2017 12:10:14 -0400 X-Google-Sender-Auth: riTBxOamq-xmYq1iy6FiKfJbzxg Message-ID: Subject: Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality. To: Pekka Paalanen Cc: Gerd Hoffmann , "dri-devel@lists.freedesktop.org" , open list , amd-gfx@lists.freedesktop.org, Daniel Vetter Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1645 Lines: 40 On Mon, Apr 10, 2017 at 11:09 AM, Pekka Paalanen wrote: > On Mon, 10 Apr 2017 16:17:27 +0200 > Gerd Hoffmann wrote: > >> Hi, >> >> > which software have you used as representative of "reality"? >> >> ppc64 (big endian) virtual machine, running with qemu stdvga & bochs-drm >> driver. Xorg with modesetting driver uses DRM_FORMAT_XRGB8888 (one and >> only format supported by bochs-drm), and we have to interpret that in >> bigendian byte order on the host side to get a correct display. > > I wonder if that is just an oversight from trying to match OpenGL > formats to DRM formats. It's full of gotcha's. > > Did you try with GLAMOR? Do you see a difference with and without > GLAMOR? Hmm, but you have no GPU support, so GLAMOR would be through a > Mesa software renderer? I think I heard someone say something about > Mesa software on BE... > > But even if this actually is a valid example of software we must keep > working as is, well, ouch. But if I cannot show that your fix breaks > anything, then I suppose you win. Your proposal would certainly solve > the dilemma we have with wl_shm formats in Wayland. > > I also wonder if a real BE machine could have different results than > the virtual machine. I have a PPC G5 with an AGP GeForce FX 5200 that I can test things on, if necessary. (I got it specifically for this purpose, as the people who use this type of hw daily tend to perform updates rarely... in no small part due to the fact that updates tend to break the HW.) Just let know what you need tested, I should be able to turn it around within a couple of days. Cheers, -ilia