<MY123>
libv: Is the Mali-T*** lima driver usable for serious work?
melonipoika has joined #linux-sunxi
premoboss has joined #linux-sunxi
<libv>
MY123: no
<libv>
MY123: it's called tamil, and all it is is some C code that runs the demo
<MY123>
libv: I have a reminding about Gallium3D Mali driver code
<libv>
no gallium.
<libv>
gallium does not allow me to hook in the binary shader compiler
<ssvb>
MY123: are you working on a Gallium3D Mali driver code?
<MY123>
ssvb, no
<ssvb>
MY123: what are you trying to say then?
<libv>
gallium requires the developer to first implement shader compiler before anything else
<MY123>
ssvb: I think that I saw a propretary Gallium3D implementation for some GPUs
<libv>
and then does not enable me to compare the output of the open source compiler versus the closed source one, for bugs or for performance differences
<ssvb>
MY123: I think that libv is not going to object if you take care of the shader compiler, feel free to do this work
<libv>
a "classic" dri driver, like used by intel, you know that company that invests an order of magnitude more in free software graphics drivers than anyone else, means that i can plug in the binary compiler and focus on getting the performance of the command stream up
<libv>
MY123: where did you see this?
<MY123>
I identified it. It is my Poulsbo laptop
<libv>
that's powervr sgx
<MY123>
libv, yeah, just some confusion
reinforce has joined #linux-sunxi
leviathancn has joined #linux-sunxi
<ssvb>
MY123: one problem is that people seem to prefer telling libv what he should do, while they could instead try to do this themselves
<ssvb>
MY123: we still need the mali kernel driver in the long run, and somebody could take care of it too
<MY123>
ssvb: Is there any docs about the interface between the Mali driver and the GPU?
<libv>
...
<libv>
MY123: it's called the gpled kernel module
<libv>
for mali, nonetheless.
<ssvb>
MY123: the mali kernel driver is open source, so "Read the Source, Luke"
<MY123>
ssvb, it's a little messy
<libv>
MY123: and?
<libv>
MY123: do you expect people to spend time cleaning it up for you?
<MY123>
libv: No
linux_salonica has quit [Ping timeout: 246 seconds]
imcsk8 has quit [Quit: Reconnecting]
imcsk8 has joined #linux-sunxi
<MY123>
[ I will prefer going back to my Xilinx FPGA to do some fun things ]
<fire855>
libv: Can you help me with this? Error: <6>[ 5.170000] gsensor_detect: Detected chip bma250 at adapter 1, address 0x18
<libv>
is a nice write up on how to go about things.
<MY123>
ssvb: I'm writing a 128-bit RISC-V core
<MY123>
(it actually has the bare minimum implemented for a "Hello World")
<ssvb>
MY123: you should be writing a GPU! right now
<ssvb>
:)
<MY123>
ssvb: but that will have less chance to ever go into production($ missing)
<MY123>
ssvb, anyway, I now have to workaround some nVidia OpenCL bugs
Netlynx has joined #linux-sunxi
Netlynx has joined #linux-sunxi
fire855 has left #linux-sunxi ["Leaving"]
ricardocrudo has quit [Ping timeout: 246 seconds]
blsd has quit [Quit: Leaving]
domidumont has quit [Read error: Connection reset by peer]
Vanfanel has quit [Quit: Lost terminal]
blsd has joined #linux-sunxi
prz has quit [Quit: Leaving.]
Renard has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
Netlynx has quit [Quit: Leaving]
premoboss has quit [Ping timeout: 252 seconds]
leowt has joined #linux-sunxi
viccuad has joined #linux-sunxi
Froolad has joined #linux-sunxi
linux_salonica has joined #linux-sunxi
viccuad has quit [Client Quit]
Froolap has quit [Ping timeout: 245 seconds]
FR^2 has quit [Quit: Connection reset by peer]
dev1990 has joined #linux-sunxi
<mzki>
Hi all, first time here
DagoRed is now known as MotherNature
<mzki>
I'm definitely going to document whatever I'm able to document
MY123 has quit [Ping timeout: 244 seconds]
MotherNature is now known as DagoRed
_massi has quit [Quit: Leaving]
<mzki>
I've only got a cubieboard atm though
MY123 has joined #linux-sunxi
<mzki>
for now I'm trying to figure this out: am I correct in thinking the A20 (or A10) should be able to drive two independent displays via RGB interface?
simosx has quit [Quit: Leaving]
khuey|away is now known as khuey
paulk-collins has joined #linux-sunxi
<bonbons>
mzki: what do you mean with "via RGB"?
<bonbons>
from libv's presentation at FOSDEM 2014 at least A20 can drive two displays (though with some limitations).
leowt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
melonipoika has quit [Remote host closed the connection]
<mzki>
bonbons: I mean what for instance the A10 datasheet refers to as "HV-DE-Sync(digital parallel RGB)"
FreezingCold has joined #linux-sunxi
von_fritz has joined #linux-sunxi
Vanfanel has joined #linux-sunxi
<Vanfanel>
ssvb: I used your suggested pixman function for copying & blitting & converting 16-32bpp and it works perfect :D
<ssvb>
Vanfanel: what about the fps numbers?
<Vanfanel>
ssvb: sorry for being so negative yesterday, I was tired...
<Vanfanel>
ssvb: as fast as no memcpy at all :P
Andy-D has quit [Ping timeout: 255 seconds]
<Vanfanel>
rock-solid 60FPS in most games
<Vanfanel>
when SNES resolution is increased (and hence bigger frames have to be copied) it slows down
<Vanfanel>
there's only a game doing that: Seiken Densetsu 3 in menus
<ssvb>
ok, it's good to know that it works
<Vanfanel>
not ony works: works great
<Vanfanel>
ssvb: a big and sincere THANK YOU for your help!
<Vanfanel>
and your patience with me...
FreezingCold has quit [Ping timeout: 245 seconds]
<Vanfanel>
ssvb: btw, is it possible to setup an extra layer behind the one displaying the scaled graphics? Or there's only one layer?
<linkmauve1>
Vanfanel, have you put the code somewhere yet?
<Vanfanel>
linkmauve1: no, not yet, give me a couple of days and I will do so
<Vanfanel>
linkmauve1: it will be part of RetroArch
<linkmauve1>
Ok, ping me when it’s done. :)
<Vanfanel>
Ok, I hope I can remember!
<linkmauve1>
I’m working on a game engine, and scaling using GL is very slow.
<linkmauve1>
On my A10, it easily halves performances, compared to a single render step in native resolution.
<linkmauve1>
(640×480)
<Vanfanel>
linkmauve1: and you need binary blobs, while this G2D stuff is open :)
<linkmauve1>
No, my game engine is already using OpenGL for rendering, unlike the SNES.
<linkmauve1>
It has a bit of 3D in it, for the backgrounds.
<linkmauve1>
But if this scaling code works fine, I could integrate it into SDL2, which already got such hardware support for other such SoCs.
<ssvb>
linkmauve1: how can the scaling using GL be slow? unless it is done as a separate step
<linkmauve1>
It’s a separate step. :/
<linkmauve1>
My engine renders currently at 640×480 (actually that’s game-dependent, but fixed for now), and then upscales that to fill the window space.
<ssvb>
wouldn't rendering to the arbitrary window size solve this problem?
<linkmauve1>
It first renders into a texture, using a fbo, then renders that texture to the actual framebuffer on Mali, since glBlitFramebuffer doesn’t exist there.
<linkmauve1>
It would, but in the game I target it would render artifacts. :/
<linkmauve1>
Changing the texture wrap changes artifacts, but still doesn’t give the expected result.
MY123 has quit [Quit: Leaving]
wickwire has quit [Ping timeout: 246 seconds]
Ovi has quit [Ping timeout: 246 seconds]
von_fritz has left #linux-sunxi ["Don't Panic"]
Froolap has joined #linux-sunxi
Froolad has quit [Ping timeout: 256 seconds]
domidumont has quit [Ping timeout: 246 seconds]
<Vanfanel>
ssvb: is it possible to setup an extra layer behind the one displaying the scaled graphics? Or there's only one layer?
faisal has joined #linux-sunxi
<ssvb>
Vanfanel: yes, there are up to 4 layers, and 2 of them are scaled
<Vanfanel>
ssvb: and what's the function to activate a second layer? sunxi_layer_show() accepts only a sunxi_disp struct. Is a new disp needed?
<Vanfanel>
also, the set_rgb_input_buffer function doesn't accept a layer number or anything
<Vanfanel>
so I don't get how to tell a second layer where to read from...
<mzki>
the A20 datasheet says "Support two-channel independent display" under Video Output
<mzki>
and under gpio multiplexing functions there are LCD0 and LCD1 outputs so it seems I should be able to use dual lcds
<mzki>
just wondering if there are any gotchas
faisal has quit [Quit: Leaving]
dev1990 has quit [Quit: Konversation terminated!]
<Vanfanel>
ssvb: do you have an example on how to activate and use the second scaled layer, please?
premoboss has joined #linux-sunxi
FreezingCold has joined #linux-sunxi
silentcreek has joined #linux-sunxi
<silentcreek>
Hi! Does anybody know how to generate or obtain usable kernel configurations for the mainline kernel? The sunxi_defconfig has many shortcomings if you want to use it with distributions like Debian because a lot of features are missing. I'd like to avoid the trial and error approach to come up with a configuration that actually works in Debian userland.
<silentcreek>
Just a few examples... I built my own 3.19 kernel based on sunxi_defconfig and was surprised to see error messages about my ext4 root filesystem. Then I found out that while ext4 support is enabled by default, extended attributes and acls are not. Another point that I took for granted but was surpised to see I'd have to configure it myself is netfilter/iptables support or IPv6.
tomcheng76 has quit [Read error: Connection reset by peer]
<silentcreek>
sehraf: I was trying to find a Debian config for armhf but couldn't find one that was recent.
<silentcreek>
Does anyone know where Debian provides them?
tomcheng76 has joined #linux-sunxi
<ssvb>
Vanfanel: you can try to create two separate instances of the sunxi_disp struct
<ssvb>
Vanfanel: but this code can be surely changed to support more layers
<Vanfanel>
ssvb: ah, ok, I will try. If that doesn't work, I will try to play with the ioctls you use, to try to activate the other layer
<Vanfanel>
thanks. Will tell you whether it works or not
Vanfanel has quit [Quit: Lost terminal]
ricardocrudo has joined #linux-sunxi
protoCall7 has joined #linux-sunxi
HeavyMetal has quit [Ping timeout: 256 seconds]
Andy-D has joined #linux-sunxi
HeavyMetal has joined #linux-sunxi
giorgio has joined #linux-sunxi
<giorgio>
hi guys , sorry for the disturb , i would know only one things ... If i install linux sunxi in allwinner a13 tablet , then can i install GNU-radio and use gnu radio companion ?
<Turl>
silentcreek: you can use multi_v7_defconfig
<silentcreek>
Turl: Thanks! So, multi_v7_defconfig includes the common features used in Debian or other distributions?
<paulk-collins>
silentcreek, yeah, minus iptables that you might need
<silentcreek>
Ok... If it's only that, I can handle that. I found a guide on the Gentoo wiki on how to configure the kernel for Iptables support
<silentcreek>
I will give it a try the next few days then. Thanks.
<Turl>
but it seems to be partitioned or something
<Turl>
silentcreek: multi_v7 is a bit more complete, and it supports some other hardware as well
reinforce has quit [Quit: Leaving.]
npcomp has joined #linux-sunxi
npcomp has quit [Client Quit]
npcomp has joined #linux-sunxi
<giorgio>
hi guys , sorry for the disturb , i would know only one things ... If i install linux sunxi in allwinner a13 tablet , then can i install GNU-radio and use gnu radio companion ?
giorgio has quit [Quit: Page closed]
<silentcreek>
Ok, so I ran my kernel build script using the multi_v7_defconfig... it looks better, even though not everything I'd wish for is in there... e.g. EXT4 ACL is not enabled... netfilter/iptables support is not enabled as paulk-collins said... but a few other things are in there now... like e.g. USB Mass Storage desive support or Simple Frame Buffer support that are both not enabled by the sunxi_defconfig... I will give it a try
<silentcreek>
Thanks so far, and good night!
silentcreek has left #linux-sunxi [#linux-sunxi]
paulk-collins has quit [Quit: Quitte]
leviathancn has quit [Ping timeout: 250 seconds]
cubear has quit [Quit: Leaving]
akaizen_ has quit [Remote host closed the connection]