GraphicsV 11 receiving 256 entries for 1/2/4bpp modes
Jon Abbott (1421) 2651 posts |
When in 2, 4 and 16 palette modes, GraphicsV 11 is receiving a 256 entry palette list when RISCOS swaps between the first and second colours. Should the GraphicsV 11 call not match the number of palette entries in the current mode? I’m also seeing RISCOS attempting to flash colours in 256 colour modes. Do 256 colour modes support flashing colours, or is the flashing palette code always active, regardless of the mode bpp? |
Jon Abbott (1421) 2651 posts |
Some other odd behaviour I’ve noticed, with register dumps on entry to GraphicsV:
|
Jeffrey Lee (213) 6048 posts |
In true colour modes, the GraphicsV palette entries are used to set the (256 entry) gamma table. So it’s fine to see those calls be issued (if a little redundant in some cases). I still haven’t got round to investigating the calls in 1/2/4bpp modes where 256 entries are specified. |
nemo (145) 2546 posts |
Which is why there has to be a difference between the current gamma table setting and the configured calibration. This is enforced by my Monitor module for example. Normal writes to the gamma curve are indirected through the calibration curve, so the gamma table can be used for visual effects such as screen fading without ruining the gamma calibration. This is also the reason for the high-resolution gamma table call – we supported higher resolution hardware gamma tables on The Nucleus precisely so we could have effect & calibration curves without quantisation. |
Jon Abbott (1421) 2651 posts |
Why? R0 should have a new entry type for gamma, otherwise every GraphicsV driver needs to check the current bpp before handling GraphicsV 10/11. So the rogue 256 entry palette changes I’m seeing are possibly Gamma as the GPU is in 16M colours? As R0=0 for both palette and gamma, I can’t tell the two apart. |
Jeffrey Lee (213) 6048 posts |
In true colour modes, the GraphicsV palette entries are used to set the (256 entry) gamma table Don’t ask me! Fixing it is one of the things on my todo list, but it hasn’t yet found its way to the top of the pile. |
Jon Abbott (1421) 2651 posts |
Let me know when you have fixed it, I want to see if filtering out just the gamma changes fixes the Pi3 blanking issue. |