You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bcm2708_fb: Support for 256 color indexed mode with custom palette? #41
Older games that operate in 8 bpp 256 colors mode, expect to be able to choose which colors they want in their palette.
However setting colors does not seem to be implemented. ( bcm2708_fb_setcolreg( ) does nothing for color numbers over 16?)
Is this something that might be added to a future version, or is this not supported by the hardware?
I believe it can be supported by hardware, but the palette currently isn't passed through.
If you can point me at simple example code that uses a 8bpp palette mode, I'll look into it.
Thanks for the update.
Have tested it, and Duke Nukem 3D looks a lot better now :-)
(Was affraid some other older games may use pallete cycling with a subset of the colors to simulate flowing water and other minor animations.
But checked the SDL fbcon source code and it indeed always sends a colormap with all 256 colors to the kernel.
So your hack should be safe for all games using libSDL for graphics)
Activity
popcornmix commentedon Jun 21, 2012
I believe it can be supported by hardware, but the palette currently isn't passed through.
If you can point me at simple example code that uses a 8bpp palette mode, I'll look into it.
maxnet commentedon Jun 21, 2012
Created a minimal example: http://pasteit.com/18040
Should output a Dutch red, white and blue flag, like in this screenshot: http://s13.postimage.org/ithb0hzrb/screenshot_testpng.png
popcornmix commentedon Jul 1, 2012
Thanks for testcase. Please update and test.
maxnet commentedon Jul 1, 2012
<< Store palette info where GPU can see it, so 8bpp modes can work. Requires updated start.elf to work properly >>
Is the updated start.elf available for download as well?
firmware repo is 3 days old.
maxnet commentedon Jul 1, 2012
nvm
I see that the new start.elf is available on Hex's git, just not on https://github.com/raspberrypi/firmware/tree/master/boot
Thanks for the update.
Have tested it, and Duke Nukem 3D looks a lot better now :-)
(Was affraid some other older games may use pallete cycling with a subset of the colors to simulate flowing water and other minor animations.
But checked the SDL fbcon source code and it indeed always sends a colormap with all 256 colors to the kernel.
So your hack should be safe for all games using libSDL for graphics)
MIPS: Octeon: Fix warning in of_device_alloc on cn3xxx
drm/plane: Fix a couple of checkpatch warnings
debugfs: Fix corrupted loop in debugfs_remove_recursive
debugfs: Fix corrupted loop in debugfs_remove_recursive
debugfs: Fix corrupted loop in debugfs_remove_recursive
debugfs: Fix corrupted loop in debugfs_remove_recursive
debugfs: Fix corrupted loop in debugfs_remove_recursive
debugfs: Fix corrupted loop in debugfs_remove_recursive
ARM: uaccess: fix undefined instruction on ARMv7M/noMMU
40 remaining items
drm/amd/display: fix a UBSAN warning in DML2.1
hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio
hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio
hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio
crypto: scompress - increment scomp_scratch_users when already allocated
mm/hugetlb: fix kernel NULL pointer dereference when replacing free h…
mm/hugetlb: fix kernel NULL pointer dereference when replacing free h…
ACPICA: Apply pack(1) to union aml_resource
ACPICA: Apply pack(1) to union aml_resource
ACPICA: Apply pack(1) to union aml_resource
ACPICA: Avoid undefined behavior: member access within misaligned add…
selftests/bpf: Run cgroup1_hierarchy test in own mount namespace
drm/amd/display: Fix null pointer deref in dcn20_resource.c
drm/amd/display: fix a UBSAN warning in DML2.1
ACPICA: Apply pack(1) to union aml_resource