Re: [qubes-devel] Wrong formula in gui-configuration doc?

2024-04-21 Thread Marek Marczykowski-Górecki
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Sun, Apr 21, 2024 at 06:30:37PM -, qubist wrote:
> Hi,
> 
> Is the formula in https://www.qubes-os.org/doc/gui-configuration/ both
> wrong and incomplete?
> 
> The correct calculation (for 8-bit displays) seems to be:
> 
> (3840 * 2160 + 1920 * 1080) * 4 / 1024 = 40500
> 
> If e.g. the 4K screen is 10-bit, this means 1.25 bytes, i.e.
> 
> ((3840 * 2160) * 1.25  + ( 1920 * 1080 )) * 4 / 1024 = 48600
> 
> The doc does not address 10-bit displays.

It doesn't matter what your display is using, the memory allocated in VM
for the frame buffer is 32-bits per pixel.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmYljLoACgkQ24/THMrX
1yyBjQf/dtV0qWxhSK0CXl+YSe5CxeZRygU8fyWikqHFfvd3z61Um7z7YFAMyJES
SzW18+VzTZEVWqjvlnX5h34L4VZ2KenXr+4kuP33vRFS0B583cLvwEAvJ8f+3ddR
P5Xc4IyvZTOJ/PL4RKeLOSM5SSCh8yayPOKWntGruhny1BccIkuCKnV/npVclfR5
tJVXoUCeV/ic+/L1rVo1Y7F4qHmLFmS7QQLoiyPT6pbWTQDJwdnChrRk+fAQr8QA
KGcYMZ56Omtp8Qjox6WNzo0+gYBchXrLgJEuWwEiIP0hJEqxtkGWNRygkCh3qp6S
miAnRC85zcHveqiJN24GbLX3qI8csA==
=Htm+
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/ZiWMuncw2fwM9xzE%40mail-itl.


[qubes-devel] Wrong formula in gui-configuration doc?

2024-04-21 Thread qubist
Hi,

Is the formula in https://www.qubes-os.org/doc/gui-configuration/ both
wrong and incomplete?

The correct calculation (for 8-bit displays) seems to be:

(3840 * 2160 + 1920 * 1080) * 4 / 1024 = 40500

If e.g. the 4K screen is 10-bit, this means 1.25 bytes, i.e.

((3840 * 2160) * 1.25  + ( 1920 * 1080 )) * 4 / 1024 = 48600

The doc does not address 10-bit displays.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/20240421183037.043447f0%40localhost.