ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
vliaskov_ has quit [Remote host closed the connection]
Company has joined #dri-devel
mbrost has joined #dri-devel
mbrost has quit [Remote host closed the connection]
mbrost has joined #dri-devel
epoch101 has joined #dri-devel
mbrost_ has joined #dri-devel
mbrost__ has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
mwk has quit [Remote host closed the connection]
mwk has joined #dri-devel
mbrost_ has quit [Ping timeout: 480 seconds]
kasper93 has quit [Ping timeout: 480 seconds]
mbrost_ has joined #dri-devel
mbrost__ has quit [Ping timeout: 480 seconds]
mbrost__ has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
amarsh04 has quit [Remote host closed the connection]
mbrost_ has quit [Ping timeout: 480 seconds]
mbrost__ has quit [Ping timeout: 480 seconds]
amarsh04 has joined #dri-devel
Kayden has quit [Quit: Leaving]
Kayden has joined #dri-devel
davispuh has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
nerdopolis_ has joined #dri-devel
nerdopolis is now known as Guest7907
nerdopolis_ is now known as nerdopolis
Guest7907 has quit [Read error: Connection reset by peer]
mceier is now known as Guest7908
mceier has joined #dri-devel
mwk has quit [Remote host closed the connection]
Guest7908 has quit [Read error: Connection reset by peer]
mwk has joined #dri-devel
alane has quit []
alane has joined #dri-devel
dviola has quit [Ping timeout: 480 seconds]
heat has quit [Ping timeout: 480 seconds]
The_Company has joined #dri-devel
Company has quit [Ping timeout: 480 seconds]
kasper93 has joined #dri-devel
nerdopolis has quit [Ping timeout: 480 seconds]
damo22 has joined #dri-devel
<damo22>
i have an existing linear framebuffer set up by grub, and i want to use it as a mesa surface. What do i need to implement? I looked in libdrm and found omap driver that looks pretty simple but it doesnt refer to anything drawing to the screen, it only mentions buffers and how to allocate them
<damo22>
i get that drm passes ioctls to hardware for acceleration, but i dont need any of that, i just have a fb
androidui has quit [Ping timeout: 480 seconds]
<airlied>
damo22: what do you mean by a mesa surface?
<airlied>
the only think I can think off is simpledrm
<damo22>
for example, can i use the linear framebuffer as a place to draw opengl swrast
himal has joined #dri-devel
<airlied>
yeah then I think you just want simpledrm
<damo22>
i dont have a linux kernel
<airlied>
then you should get one of them first :-P
<damo22>
im implementing this for GNU/Hurd
<damo22>
we already have an existing framebuffer set up with a width and height, and a video memory address
<damo22>
ideally we could port drm from the linux kernel but im not ready to attempt all that, it should be possible to implement swrast backed by a dumb framebuffer
<airlied>
what API do you want to access mesa with though? OpenGL, Vulkan?
<airlied>
you need something to bind the "framebuffer" to the API
<damo22>
could i implement the gbm interface?
<airlied>
yeah gbm seems like where you'd do it
<airlied>
but without any sort of vblank or pageflip it'll tear
<damo22>
so i would swap out the gbm_dri with a gbm_dumbfb
<airlied>
someone else might have a better clue if you hang around, maybe someone from weston or another compositor
<damo22>
i thought i could implement a dummy drm driver, that would allocate buffers in cpu memory instead of using gpu
<airlied>
that might be easier
<damo22>
but i cant seem to find any calls that actually draw anything
<airlied>
well you don't need calls to draw anything in the kernel if it's all in software
<damo22>
it needs to write the memory to the framebuffer though to make it appear on the screen
mdroper has quit [Ping timeout: 480 seconds]
<airlied>
I think we usually do writes to the frontbuffer in the kernel using dirty handlers
<damo22>
what is an example of an ioctl that writes to the frontbuffer
<airlied>
drm_mode_fb_dirty_cmd
<airlied>
sw renders to the buffer, and that will sync dirty regions to hw
<airlied>
I think we must have some use case that direct renders to the scanout, but I'm not exactly sure what that looks like
<damo22>
ok thats helpful
<damo22>
could i implement page flipping in software by copying a complete frame from another memory location?
oneforall2 has quit [Remote host closed the connection]
oneforall2 has joined #dri-devel
karenw has quit [Remote host closed the connection]
marc2377 has joined #dri-devel
marc2377 has quit [Remote host closed the connection]
karenw has joined #dri-devel
karenw has quit []
bmodem has joined #dri-devel
Duke`` has joined #dri-devel
marc2377 has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
marc2377_ has joined #dri-devel
marc2377_ has quit [Remote host closed the connection]
marc2377 has quit [Ping timeout: 480 seconds]
vedranm has joined #dri-devel
sarnex has quit [Read error: No route to host]
sarnex has joined #dri-devel
sukuna1 has quit [Ping timeout: 480 seconds]
leo60228 has joined #dri-devel
jsa has joined #dri-devel
sghuge has quit [Remote host closed the connection]
sghuge has joined #dri-devel
sarnex has quit [Read error: No route to host]
frieder has joined #dri-devel
sarnex has joined #dri-devel
sima has joined #dri-devel
vliaskov has joined #dri-devel
rgallaispou has joined #dri-devel
tzimmermann has joined #dri-devel
rgallaispou has quit []
amarsh04 has quit [Remote host closed the connection]
u-amarsh04 has joined #dri-devel
aperezdc has left #dri-devel [#dri-devel]
Haaninjo has joined #dri-devel
LeviYun has quit [Ping timeout: 480 seconds]
lynxeye has joined #dri-devel
rgallaispou has joined #dri-devel
jkrzyszt has joined #dri-devel
apinheiro has joined #dri-devel
LeviYun has joined #dri-devel
DarkShadow4444 has joined #dri-devel
DarkShadow44 has quit [Read error: Connection reset by peer]
rgallaispou1 has joined #dri-devel
rgallaispou has quit [Read error: Connection reset by peer]
rgallaispou1 has quit [Read error: Connection reset by peer]
rgallaispou has joined #dri-devel
rasterman has joined #dri-devel
rgallaispou has quit [Read error: Connection reset by peer]
u-amarsh04 has quit [Remote host closed the connection]
WhyNotHugo has quit [Ping timeout: 480 seconds]
nucfreq has quit [Ping timeout: 480 seconds]
rosefromthedead has quit [Ping timeout: 480 seconds]
ifreund has quit [Ping timeout: 480 seconds]
kuruczgy has quit [Ping timeout: 480 seconds]
mainiomano has quit [Ping timeout: 480 seconds]
u-amarsh04 has joined #dri-devel
hummer12007 has quit [Ping timeout: 480 seconds]
alethkit has quit [Ping timeout: 480 seconds]
nucfreq has joined #dri-devel
ella-0 has joined #dri-devel
cmarcelo has joined #dri-devel
atiltedtree has joined #dri-devel
kennylevinsen has joined #dri-devel
sumoon has joined #dri-devel
hummer12007 has joined #dri-devel
kuruczgy has joined #dri-devel
rosefromthedead has joined #dri-devel
mainiomano has joined #dri-devel
rpigott has joined #dri-devel
pitust has joined #dri-devel
alethkit has joined #dri-devel
kchibisov has joined #dri-devel
ifreund has joined #dri-devel
kts has joined #dri-devel
Haaninjo has quit [Quit: Ex-Chat]
kts has quit [Quit: Leaving]
Lucretia has quit []
diego has quit [Ping timeout: 480 seconds]
<dualperform>
what i think is the win comes compared to hw, that the result can yield a smaller value, so how the hw sees it, is that we have no 33+1 but have 34+2, and inverted index causes a invariant sum, so it sorta like uses the offset from collisions even if we never use a count based resulting, the internal adder of sub and add would count the offset. and decoder would add the weights, so i
<dualperform>
would not see where the entropy comes from if you pin the results correctly, it's more like lynne told, that those guys were so hell of a smart they preserved a large entropy in the hw for the sake of the future gates and this scenario is more plausible than that being a side effect of electron shells being too small to be not doing it. But my explanations are not so understandable as i
<dualperform>
have noticed. But Claude Elwood Shannon is no longer alive, maybe Peter Shor or someone more experienced could try to explain this. The way i see is that it can shift the spectrum by having vision to the both sides of the polarities, hence i would expect the sw sides of things to have no entropy if you order the results at correct indexes, empirical entropy aka Shannon entropy, they
<dualperform>
regard him as the informatics father, likely was an amazing man as how it seems.
Lucretia has joined #dri-devel
rgallaispou has joined #dri-devel
Lucretia has quit []
Lucretia has joined #dri-devel
dualperform has quit [Remote host closed the connection]
u-amarsh04 has quit [Remote host closed the connection]
nerdopolis has joined #dri-devel
docmax_ has quit []
docmax has joined #dri-devel
kchibisov has quit [Ping timeout: 480 seconds]
nucfreq has quit [Ping timeout: 480 seconds]
sumoon has quit [Ping timeout: 480 seconds]
kuruczgy has quit [Ping timeout: 480 seconds]
cmarcelo has quit [Ping timeout: 480 seconds]
mainiomano has quit [Ping timeout: 480 seconds]
rosefromthedead has quit [Ping timeout: 480 seconds]
pitust has quit [Ping timeout: 480 seconds]
kennylevinsen has quit [Ping timeout: 480 seconds]
hummer12007 has quit [Ping timeout: 480 seconds]
rpigott has quit [Ping timeout: 480 seconds]
atiltedtree has quit [Ping timeout: 480 seconds]
ella-0 has quit [Ping timeout: 480 seconds]
ifreund has quit [Ping timeout: 480 seconds]
alethkit has quit [Ping timeout: 480 seconds]
WhyNotHugo has joined #dri-devel
bmodem has quit [Ping timeout: 480 seconds]
sumoon has joined #dri-devel
cmarcelo has joined #dri-devel
pitust has joined #dri-devel
kchibisov has joined #dri-devel
atiltedtree has joined #dri-devel
shoragan has quit [Read error: Network is unreachable]
pH5 has joined #dri-devel
rgallaispou1 has joined #dri-devel
shoragan has joined #dri-devel
davispuh has joined #dri-devel
rpigott has joined #dri-devel
rgallaispou has quit [Ping timeout: 480 seconds]
kennylevinsen has joined #dri-devel
rgallaispou1 has quit [Read error: Connection reset by peer]
rosefromthedead has joined #dri-devel
rgallaispou has joined #dri-devel
mainiomano has joined #dri-devel
kuruczgy has joined #dri-devel
ifreund has joined #dri-devel
ella-0 has joined #dri-devel
nucfreq has joined #dri-devel
hummer12007 has joined #dri-devel
alethkit has joined #dri-devel
<alyssa>
glehmann: so I did start looking into int16 stuff and ugh it's turning into a mess
<alyssa>
giant pile of patterns for things like `u2u16(iadd(x, y)) -> iadd(u2u16(x), u2u16(y)`
<alyssa>
but for iadd/isub/imul/ixor/iand/ior/inot/ineg (at least)
<alyssa>
and really u2u16 also u2u32 for x is 64
<alyssa>
and really why not u2u16 with x 64? idk if llvm generates that ever
<alyssa>
and then we really *do* need to do something about shifts. not sure how to get around the current sm5 definition but yeah
<alyssa>
and fundamentally the problem here is C's stupid constant promotion rules means that CL C code that uses exclusively 16-bit, actually uses 32-bit with a gigantic pile of conversions
<alyssa>
and I'm.. trying to figure out if nir_opt_algebraic is even the right tool for the job, vs some clever handrolled pass
<alyssa>
we can generate all the permutations but if it turns into 100+ patterns, that seems... substantial
<alyssa>
and then 8-bit is a whole other can of worms, that I won't open because AGX doesn't have real 8-bit arithmetic (so these patterns would just undo the 16-bit lowering) and because 8-bit arithmetic is mostly pointless on Mali which does have it
u-amarsh04 has joined #dri-devel
<alyssa>
I can't tell how much of this is "not useful for other backends" vs just "nobody is very focused on OpenCL"
guludo has joined #dri-devel
<alyssa>
I could easily believe that HLSL/GLSL does't hit any of this and it's only CL C because of the const promotion rule