Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165673AbdDXGdg (ORCPT ); Mon, 24 Apr 2017 02:33:36 -0400 Received: from mail.netline.ch ([148.251.143.178]:38816 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1165486AbdDXGd3 (ORCPT ); Mon, 24 Apr 2017 02:33:29 -0400 Subject: Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality. To: Ilia Mirkin , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: amd-gfx@lists.freedesktop.org, open list , "dri-devel@lists.freedesktop.org" , Gerd Hoffmann , Daniel Vetter References: <20170421075825.6307-1-kraxel@redhat.com> <20170421165907.GQ30290@intel.com> <20170422095056.GR30290@intel.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Message-ID: Date: Mon, 24 Apr 2017 15:33:07 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1266 Lines: 28 On 23/04/17 04:24 AM, Ilia Mirkin wrote: > > fbdev also creates fb's that expect cpu endianness, as disabling the > byteswap logic caused a green fbcon terminal to show up. (So at least > something somewhere in the fbcon -> nouveau's fbdev emulation pipeline > is expecting cpu endianness. This happens both with nouveau's fbdev > accel logic and without.) In theory, there's FB_FOREIGN_ENDIAN for that. But in practice it's probably useless because little if any userspace even checks for it, let alone handles it correctly. > So I think the current situation, at least wrt pre-nv50 nouveau, is > that XRGB/ARGB8888 are "special", since they are the only things > exposed by drm_crtc_init. I believe those definitions should be > updated to note that they're cpu-endian-specific (or another way of > phrasing it more diplomatically is that they're array formats rather > than packed formats). That would be incorrect. :) The memory layout of 8-bit-per-component array formats doesn't depend on endianness, that of packed formats does. (DRM_FORMAT_*8 as currently defined are thus effectively array formats) -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer