From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 23981 invoked from network); 27 Feb 2021 08:56:09 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 27 Feb 2021 08:56:09 -0000 Received: from mail-lj1-f179.google.com ([209.85.208.179]) by 1ess; Sat Feb 27 03:50:12 -0500 2021 Received: by mail-lj1-f179.google.com with SMTP id u4so13364451ljh.6 for <9front@9front.org>; Sat, 27 Feb 2021 00:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:content-transfer-encoding:to:subject:date :mime-version:content-transfer-encoding; bh=sW8gbfHa2qLhkE4NJ4UtBx68DHfVJkYFTRXFwHvjWu8=; b=UE3DJelD+lrzwYvnc6kDFJ8fvRcro8nri4G/+FBlbUNWuuEjDSl5iGL382A5aNE0A3 8C0Vc9xEpwbuJ1rlnYAePzyNcgjKOu7p82abQIvFgP5PFc2Fo24F5iI7FNl11ayeKNlR lGM8eDCZH19rsAfjJXnJq7sm4RMIfrKDIspGMQjfzxJQEeh2KJ3u2l2D8jBEJ7Nkwfcc egQseroo6uhIpLmshwE5KYtwemQy8C5k0wfZxd/jik1nLSvie9Ht6qtOzxHx402JsqF1 FjJ20WLUjXhbFzvWPSJOEs0ZdWsl6ptR0UT0fPylaW7om/2alq5BOgYtyldiJBLBurVI fSxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:content-transfer-encoding:to :subject:date:mime-version:content-transfer-encoding; bh=sW8gbfHa2qLhkE4NJ4UtBx68DHfVJkYFTRXFwHvjWu8=; b=UKfJRxCIFFcXf6dvyMprQEcFdv/rbew1zboszG+GkQcf0TQJuWtm5VXa1rNVEWwP8E GhZN4VB9aipodWDwVekalXfBTJRZFC26wtmw8tsE3RhlP2jpnxuXKpcI16V+oPoNT4ly NZ1bR9WucPmp+N5g6cbE9QtfKiwjxOJyyoh8c8B7Aetb7efmx72Kb/Au9kmG1NASvA6F QQ77e/ATLUKvAbfTxSAP5lts9K9sHj3v/E0bXFOVSJH1i5qhmD012G++HqdcQPlbcBR0 mluK6Nsl6ut40qY+uoBzlYo8pml3jcTwIgsBO2uM7Jk7jKjNpjbdxsdwVjJ5fYxLk28v +UwA== X-Gm-Message-State: AOAM533sVBXzqC8YqOffKbK7gbBd/78NB5H7XAt/KFzK5TnH+/YdS/t4 cGrevgocnRwH+JjMMQqQ+nz4pfi7Zl8l2w== X-Google-Smtp-Source: ABdhPJxwkAaZ3w5LI4/Siu70PubilsXIudlxsHXTqdrLkUK4a8YMSXj3ifzUnv6CL/IGYRsaRPV2kw== X-Received: by 2002:a2e:9098:: with SMTP id l24mr3678236ljg.343.1614415802313; Sat, 27 Feb 2021 00:50:02 -0800 (PST) Return-Path: Received: from rpi4 ([95.165.9.116]) by smtp.gmail.com with ESMTPSA id e15sm322641ljg.54.2021.02.27.00.50.01 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Feb 2021 00:50:01 -0800 (PST) From: p.kosyh@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <9CBD1A36E358CAC58EEBD737B84C6C47@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit To: 9front@9front.org Date: Sat, 27 Feb 2021 11:49:59 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing map/reduce scripting controller Subject: [9front] rpi4 RGB24 vs BGR24, glitches and golang status Reply-To: 9front@9front.org Precedence: bulk Hello! I finally bought rpi4 4Gb specially for 9front. It seems, that default bpp of framebuffer is 16. I changed it to 24 (via cmdline.txt and config.txt) and found, that rendering is much faster! (May be due removing overheads in 16->24 conversions?) But on rpi4 r and b channels are swapped. So, i changed BGR24 to RGB24 in bcm/screen.c and now it works fine! I am not sure, if this patch will work on rpi3/2/1, so i just wrote this message if it will useful for someone. The next problem. Sometimes i see strange artefacts on screen. If i run acme with lot of text i see pale character places (like vertical bars) in other parts of the screen. /dev/screen does not contain those data. I checked hdmi cable and monitor with Linux. No problem. Can it be something with alpha blending calculations or something like this? Is there an experiment i could do? Btw i remember that i saw such artefacts in 9front running in amd64 qemu on AMD (non Intel) host. Golang does not support plan9/arm64 target. Because arm64 is 9front only :) Is anyone working on it or it is too hard to implement?