Article View: comp.arch
Article #248Re: Q+ graphics, 24-bit loads and stores
From: Terje Mathisen
Date: Tue, 20 Oct 2026 18:43
Date: Tue, 20 Oct 2026 18:43
62 lines
3691 bytes
3691 bytes
MitchAlsup wrote: > Robert Finch <robfi680@gmail.com> posted: > >> On 2026-10-19 5:46 p.m., BGB wrote: >>> On 10/18/2026 12:50 PM, MitchAlsup wrote: >>>> Robert Finch <robfi680@gmail.com> posted: >>>> >>>>> Adding some graphics instructions to Q+. While doing so, it seems to me >>>>> like 24-bit load and store operations to handle RGB888 data might be >>>>> handy. >>>> >>>> A lot of GPUs use the other 8-bits as a mixing or transparency code. >>>> >>> >>> Yeah, 32-bit RGBA (RGBA32 / RGB8888) is pretty much standard, differing >>> mostly as an unresolved fight over element ordering: >>> Â "R, G, B, A" vs "B, G, R, A". >>> >> Figures. I use ARGB, putting the alpha in the MSBs. >>> >>> 24-bit is mostly a weird/awkward thing that is sometimes used but mostly >>> not really worth it; vs just ignoring the last 8 bits in a 32-bit word >>> when alpha isn't needed. >>> >>> Some 10.10.10 formats exist, but are rarely used, and usually overkill. >>> Â 3x E5.M5 does seem semi-popular here for HDR. >>> Â 3x E4.M4 also works, and allows treating it like RGBA32. >>> Â Â Â And seems to match the look/behavior of HDR on a Radeon HD 4xxx. >>> Â 3x E4.M6: No one uses it but would give better fidelity. >>> >> Most people cannot see color beyond RGB777 so 10.10.10 is overkill but I >> had worried about rounding of colors and figure a few extra bits would >> not hurt. ARGB3777 is 24-bit. Some of the very early display adapters >> only supported 18 bits for color. So, ARGB6666 - fits nicely in 24 bits. > > And then there are those of us who edit photographs and hate it when > a change to gamma results in posterization of the "sky" or any other > recognizable color with a small gradient. We also worry about gamut. 3x8-bit RGB is typically OK for finished photos, but for anything that's going to be edited, you want a _lot_ more. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID:
<11b8cov$39e66$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11apshg$25e7t$1@dont-email.me> <1792092095-5857@newsgrouper.org> <11arq6g$2se7j$1@dont-email.me> <11b0tr2$ljeu$1@dont-email.me> <1792345842-5857@newsgrouper.org> <11b635m$2evpo$1@dont-email.me> <11b7c6b$2s96c$1@dont-email.me> <1792514871-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Terje Mathisen <terje.mathisen@tmsw.no> Newsgroups: comp.arch Subject: Re: Q+ graphics, 24-bit loads and stores Date: Tue, 20 Oct 2026 20:43:46 +0200 Organization: A noiseless patient Spider Lines: 62 Message-ID: <11b8cov$39e66$1@dont-email.me> References: <11apshg$25e7t$1@dont-email.me> <1792092095-5857@newsgrouper.org> <11arq6g$2se7j$1@dont-email.me> <11b0tr2$ljeu$1@dont-email.me> <1792345842-5857@newsgrouper.org> <11b635m$2evpo$1@dont-email.me> <11b7c6b$2s96c$1@dont-email.me> <1792514871-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Tue, 20 Oct 2026 18:43:44 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3455174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7o7MTKVb2aCcnbZPrmNUWK5/I3UjRBb1rTpDgZlxaWw=="; posting-host="39d34bbe0377c07bf46ad66fe9cb263c" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:uV8h2yOHqr1eGg95uxlD7hDmydw= sha256:nw0jGvP/MuvhwQROE39S0p9/vBWNcmYdccYTpG4fY+w= sha1:4DdQwYYfRilochbpUWojwqhqUYI= sha256:rZG/l7/UyrhoD6wHwa+Hq4raL1HWGvJRZkNU/PJpM4A= In-Reply-To: <1792514871-5857@newsgrouper.org>