narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
_whitelogger has joined #linux-amlogic
buzzmarshall has quit [Remote host closed the connection]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #linux-amlogic
<xdarklight> narmstrong: that same hack still works more than 5 years later
<xdarklight> narmstrong: and here's someone reporting some that poking the replaced_alpha and replaced_alpha_en bits into VIU_OSD1_CTRL_STAT2 does something on Odroid-C1: https://forum.odroid.com/viewtopic.php?f=138&t=19403 - but when I read that register back at the end of meson_plane_atomic_update it gives me all zeros
<xdarklight> sorry, I'm getting back all zeros in meson_crtc_irq but setting the right value in meson_plane_atomic_update
sputnik__ has quit [Ping timeout: 256 seconds]
<xdarklight> ah, that odroid link is for the C2
<xdarklight> but this is about Meson8b: https://forum.odroid.com/viewtopic.php?p=71621#p71621
<narmstrong> Wow weird hack
<xdarklight> I'm out for a while, if you have any ideas (on how to solve it or where to ask for help): I'll continue hacking tonight
Darkmatter66_ has quit [Ping timeout: 260 seconds]
Darkmatter66 has joined #linux-amlogic
<narmstrong> xdarklight: if I understand you can’t replace alpha with a fixed value to support xrgb but only argb ?
<narmstrong> xdarklight: solution is to not support xrgb but add support for 24bit formats without alpha
<xdarklight> ich123
buzzmarshall has joined #linux-amlogic
<narmstrong> xdarklight: I hope it’s not your password !
CEnnis91 has quit [*.net *.split]
khilman has quit [*.net *.split]
AUser has quit [*.net *.split]
khilman has joined #linux-amlogic
AUser has joined #linux-amlogic
CEnnis91 has joined #linux-amlogic
<chewitt> some ge2d options mentioned in that thread too
<xdarklight> narmstrong: heh, no - I'm using generated passwords everywhere
<xdarklight> narmstrong: I'll try implementing the 24bit formats and see if that gives better results
<xdarklight> ah, support for DRM_FORMAT_RGB888 is already there
<xdarklight> hmm, dropping DRM_FORMAT_XRGB8888 makes kmscube unhappy
<narmstrong> Yep the default is xrgb8888
mag has joined #linux-amlogic
<xdarklight> narmstrong: do you think that this is some issue that can be worked around in the DRM code (or if there's a workaround somewhere already)?
<xdarklight> narmstrong: also does this make sense to you: https://pastebin.com/yL2yyprT ? (problem description in the comment)
sputnik__ has joined #linux-amlogic
vagrantc has joined #linux-amlogic
<narmstrong> xdarklight: not sure, not having xrgb8888 is quite an issue
<narmstrong> xdarklight: do you still have a fbcon without it ?
<narmstrong> Pretty sure kmscube could run with argb8888 or rgb888 but it would need to be tweaked
<xdarklight> narmstrong: without DRM_FORMAT_XBGR8888 I still don't have any fbcon
<narmstrong> I think xrgb8888 is the default one
<xdarklight> narmstrong: I'm wondering if technically DRM_FORMAT_XBGR8888 is supported, it just needs surface_depth = 32 (whatever that means in the graphics world :-))
<xdarklight> narmstrong: I've seen that the GMA500 driver does this: https://elixir.bootlin.com/linux/v5.7-rc2/source/drivers/gpu/drm/gma500/framebuffer.c#L470 - but I'm not sure if that would "fix" all use-cases or if we would still have some broken cases afterwards
<narmstrong> It’s an old platform and is buggy, switching to 16bit for fbcon is not horrible for me
<narmstrong> Since other graphics stack will correctly handle argb8888
<xdarklight> instead of switching to 16bit we can also switch to 32bit. the only problem is 24bit (at least that's my understanding)
<xdarklight> right, I'll switch to 16-bit because that requires only one line of code to change
<xdarklight> good enough. even the Broadcom VC4 driver uses 16bit
<xdarklight> narmstrong: nice, DRM switches the format nicely between kmscube and fbcon (and vice versa) :-)
<xdarklight> and even better: it will even render 24-bit DRM_FORMAT_RGB888 fbcon - so that's worse than GXBB but better than VC4. I'm happy :-)
mag has quit [Ping timeout: 260 seconds]
<xdarklight> this discussion helped me a lot - thank you narmstrong !
sputnik__ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
vagrantc has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 264 seconds]