ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel has landed in mainline, userspace driver is part of mesa - Logs at https://people.freedesktop.org/~cbrill/dri-log/index.php?channel=lima and https://freenode.irclog.whitequark.org/lima - Contact ARM for binary driver support!
<mrfixit2001> :) added the patch and will have the updated kernel in place in just a few minutes, keep you posted! And yes, absolutely understood, you're right. As my first attempt, I wanted to see if somehow it "just worked" ;)
<mrfixit2001> anarsoul that patch fixed kmscube! rendering nicely as long as I pass -D as card1
<mrfixit2001> oddly, export DISPLAY=1 no longer allows kmscube to run without the -D parameter
<mrfixit2001> how do you recommend ensuring card1 is always set to display
jrmuizel has joined #lima
<anarsoul> I compile display driver into the kernel and lima as a module
<anarsoul> you can also do some magic with modprobe.conf to add soft-dependency for lima on display driver
<mrfixit2001> Ok! I have lima compiled into the kernel so it can init earlier, but if I make it a module instead then you're saying it will auto-set card1 as display? Also - I can run a few retroarch emulators now, that's a really promising start. But SDL2 doesn't like the lima driver
<mrfixit2001> anarsoul is there any way for me to remove the need to set the display to card1? Can I somehow make card0 the primary?
<mrfixit2001> or will setting lima as a module do that?
<anarsoul> display card has to be card0
<anarsoul> not card1
<anarsoul> lima has to be card1
<mrfixit2001> So I guess I'm confused... I can't render anything to card0. I have to force the display to card1 in order to render anything.
<anarsoul> because your display is likely card1
<mrfixit2001> for example, I have to change the source code for a particular emulator from: drm.fd = open("/dev/dri/card0", O_RDWR); to instead use card1
<anarsoul> and it has to be card0
<mrfixit2001> haha yes, you've said that, I just don't know how to do it properly. Let me recompile lima as a module and see if that fixes it :P
<mrfixit2001> So I believe we are closer now after that :)
<mrfixit2001> anarsoul except now whenever I try any SDL application I get: SDL_CreateWindow failed: No OpenGL support in video driver
<anarsoul> debug it? :)
<mrfixit2001> :) use gdb?
<mrfixit2001> can you first tell me if this looks ok please? https://pastebin.com/mLtAByCv
<anarsoul> whatever you prefer
<anarsoul> you didn't build anything but -Dplatforms=drm
<anarsoul> so wayland or x11 won't work for you
<anarsoul> and I have no idea whether SDL supports DRM
<mrfixit2001> correct, not using x11 or wayland, the build is strictly GBM/GLES/EGL
<mrfixit2001> and currently works fine with the mali blob
<mrfixit2001> anarsoul here is your debug: https://pastebin.com/j3m9SqBr
<anarsoul> probably you didn't enable desktop GL
<mrfixit2001> I'm not seeing much additional detail in the debug really
<mrfixit2001> The application isn't compiled for opengl, it uses gles
<mrfixit2001> so it should be looking for libgl
<mrfixit2001> *should not
<anarsoul> "SDL_CreateWindow failed for GL 3.2: No OpenGL support in video driver"
<mrfixit2001> It's being compiled with -DOPENGL_LIBRARIES=GLESv2
<mrfixit2001> amongst others of course... but same exact compile flags that are used when running with the libmali blob without opengl
<mrfixit2001> sadly, the wife says I am now out of time to play haha I'll check the log later if you have any ideas for me
<anarsoul|c> Anyway, it fails somewhere in SDL
<anarsoul|c> So debug it
<mrfixit2001> for what it's worth, I have this exact same issue with panfrost. "No OpenGL support in video driver"... so there's something about mesa that these apps just aren't liking... they are searching for opengl but shouldn't be, and don't encounter the same issue when using the mali blob and headers.
<mrfixit2001> but with panfrost I wasn't even ever able to render kmscube, so this is a step in the right direction
<mrfixit2001> will debug sdl next
<mrfixit2001> thanks for the help so far!
kaspter has joined #lima
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #lima
yuq825 has joined #lima
camus has joined #lima
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
<anarsoul> yuq825: hi
<yuq825> hi
<anarsoul> I've just got back home yesterday, I'll review your kernel patches sometime this week
<yuq825> thanks
<anarsoul> hope you'll come to next XDC :)
<yuq825> thanks, would be good to meet you guys
jrmuizel has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #lima
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #lima
yuq825 has quit [Quit: Leaving.]
megi has quit [Ping timeout: 240 seconds]
<anarsoul> wow, mali450 on lafrite is really fast
<anarsoul> looks like it's running at 744MHz
<Danct12> anyone knows what's a good demo to run on mali 4xx?
<anarsoul> q3a with opengl1 renderer? :)
<anarsoul> gl2 doesn't work yet
<anarsoul> but we'll get there
Barada has joined #lima
<Danct12> <anarsoul "q3a with opengl1 renderer? :)"> any links?
anarsoul|c has quit [Quit: Connection closed for inactivity]
deesix has quit [Ping timeout: 265 seconds]
deesix has joined #lima
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #lima
adjtm_ has quit [Ping timeout: 265 seconds]
kaspter has quit [Read error: Connection reset by peer]
kaspter has joined #lima
adjtm_ has joined #lima
wens has joined #lima
wens has left #lima [#lima]
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #lima
mrfixit2001 has quit [Remote host closed the connection]
anarsoul|c has joined #lima
<MoeIcenowy> anarsoul: 744MHz Mali... sounds quite crazy.
camus has joined #lima
kaspter has quit [Ping timeout: 268 seconds]
camus is now known as kaspter
dddddd has joined #lima
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
jrmuizel has joined #lima
anarsoul|c has quit [Quit: Connection closed for inactivity]
megi has joined #lima
adjtm has joined #lima
adjtm_ has quit [Ping timeout: 240 seconds]
adjtm_ has joined #lima
austriancoder_ has joined #lima
libv_ has joined #lima
libv has quit [Ping timeout: 268 seconds]
plaes has quit [Ping timeout: 268 seconds]
adjtm has quit [Ping timeout: 268 seconds]
cyrozap has quit [Ping timeout: 268 seconds]
megi has quit [Ping timeout: 268 seconds]
dddddd has quit [Ping timeout: 268 seconds]
austriancoder has quit [Ping timeout: 268 seconds]
zombah has quit [Ping timeout: 268 seconds]
austriancoder_ is now known as austriancoder
plaes_ has joined #lima
megi has joined #lima
dddddd has joined #lima
zombah has joined #lima
libv_ is now known as libv
cyrozap has joined #lima
Barada has quit [Remote host closed the connection]
jrmuizel has quit [Remote host closed the connection]
anarsoul|c has joined #lima
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #lima
Wizzup has quit [Ping timeout: 245 seconds]
jrmuizel has joined #lima
Wizzup has joined #lima
<anarsoul> Danct12: sources are here https://github.com/ioquake/ioq3
<Danct12> <anarsoul "Danct12: sources are here https:"> yeah i was informed
<anarsoul> then what links are you asking for? :)
<Danct12> about how can you run the game with desktop gl
<anarsoul> lima exposes desktop gl
<Danct12> huh, i wasnt able to get it running with desktop gl
<Danct12> just telling me that it couldn't get visual
<Danct12> huh weird, i ran it and it just got this error
<anarsoul> show your Xorg.0.log?
<anarsoul> oh, hold on
<anarsoul> try windowed mode
jrmuizel has quit [Remote host closed the connection]
<Danct12> it's sway wlroots
<anarsoul> see your ~/.q3a/baseq3/q3config.cfg
<anarsoul> change r_fullscreen to "0"
<Danct12> i ran it under windowed mode, still the same error
<Danct12> r_fullscreen is set to 0
jrmuizel has joined #lima
jrmuizel has quit [Remote host closed the connection]
<anarsoul> well, it works for me in X11 and in weston
<anarsoul> I haven't tried it in sway
jrmuizel has joined #lima
<anarsoul> Danct12: just checked - works for me
<anarsoul> I'm testing it on pine64 though
<Danct12> i wonder why it doesn't work for me
<Danct12> libGL does exist in /usr/lib, so I don't see why it wont run
plaes_ has quit [Quit: Reconnecting]
plaes has joined #lima
plaes has joined #lima
drod has joined #lima
adjtm_ has quit [Ping timeout: 250 seconds]
warpme_ has quit [Quit: Updating details, brb]
warpme_ has joined #lima
<anarsoul> rellla: are you around?
<rellla> kind of
<anarsoul> have you tried to dump what blob does when you don't have any attributes for vs?
<rellla> no, i still didn't get the blob working an example program.
<rellla> and dropped that effort until now because i got some fixes. not sure though, if i did the right things but at least i got no rgressions.
<rellla> i can run the blob here, but do not get the syscall tracker in between, due to x11 dependency. at least it seems so...
<rellla> what i run into was some other issue with gl_PointSize, which works when set in GL code but not in shader.
<anarsoul> I think syscall tracker may work with X11
<anarsoul> but I haven't tried that
<rellla> i do not use x11.
<anarsoul> it works with wayland blob then :)
<anarsoul> (which has libgbm)
<rellla> does it work with gbm/wayland blob?
<anarsoul> yes
<rellla> ah :)
<rellla> how important is a version match of the blob and the headers included in syscall?
<anarsoul> very important :)
<anarsoul> I use r6p2
<anarsoul> yes
<anarsoul> iirc r6p1 works fine with r6p2 blob
<rellla> fine, so i should give that a try tomorrow. would make things easier if i can take a look into the streams ;)
<anarsoul> thanks :)
<anarsoul> I'm fine with your fix but it would be nice if we understand what blob does if there's no attributes
<rellla> sadly piglit doesn't work with the blob so i hacked my own test prog based on yuq's gfx examples. gbm based.
<rellla> anarsoul: yeah, i try to see what the blob does. even if it would do weird things :)
adjtm_ has joined #lima
jrmuizel has quit [Remote host closed the connection]
jrmuizel has joined #lima
<anarsoul> MoeIcenowy: any progress on making a simple reproducer for misrendering issue?
drod has quit [Ping timeout: 240 seconds]
drod has joined #lima
drod has quit [Remote host closed the connection]
jrmuizel has quit [Remote host closed the connection]
mrfixit2001 has joined #lima
<mrfixit2001> anarsoul just wanted to report back that the issue with SDL is that it requires to be compiled with the following defined if you're using mesa without X: MESA_EGL_NO_X11_HEADERS
<anarsoul> OK, good to know, thanks
<mrfixit2001> After recompiling SDL2.0.8 with that, basic SDL2 apps ran. that was on an aarch64 compile, I'm moments away from booting the 32-bit compile (with 64-bit kernel). The majority of the applications in this build require 32-bit userspace, so we will see if there's any conflict between the kernel drivers at 64-bit and the userspace mesa at 32-bit
<mrfixit2001> anarsoul good news and bad news - kmscube works, emulationstation works, retroarch kinda works... bad news - a lot of other things don't haha this also popped up in dmesg: https://pastebin.com/M56PdTQG
jrmuizel has joined #lima
<mrfixit2001> some things that rendered fine with an entire aarch64 build don't render at all with the 32-bit userspace over 64-bit kernel
<anarsoul> mrfixit2001: well, fix it? :)
megi has quit [Ping timeout: 240 seconds]
<anarsoul> it's pretty low priority atm to fix 32 bit userspace with 64 bit kernel