ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
epoch101 has joined #dri-devel
amarsh04 has quit []
yshui has joined #dri-devel
androidui has quit [Ping timeout: 480 seconds]
yshui_ has quit [Ping timeout: 480 seconds]
yshui_ has joined #dri-devel
u-amarsh04 has joined #dri-devel
yshui has quit [Ping timeout: 480 seconds]
karenw has joined #dri-devel
androidui has joined #dri-devel
iive has quit [Quit: They came for me...]
bolson has joined #dri-devel
apinheiro has quit [Remote host closed the connection]
Haaninjo has quit [Quit: Ex-Chat]
yshui has joined #dri-devel
glennk has quit [Ping timeout: 480 seconds]
yshui_ has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
yshui_ has joined #dri-devel
yshui has quit [Ping timeout: 480 seconds]
mbrost_ has joined #dri-devel
mbrost__ has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
mbrost_ has quit []
mbrost__ has quit []
NiGaR has quit []
NiGaR has joined #dri-devel
heat has quit [Ping timeout: 480 seconds]
karenw has quit [Ping timeout: 480 seconds]
alane_ has quit []
alane has joined #dri-devel
yrlf has quit [Read error: Connection reset by peer]
yrlf has joined #dri-devel
yshui_ has quit [Ping timeout: 480 seconds]
yshui has joined #dri-devel
kts has joined #dri-devel
The_Company has joined #dri-devel
Company has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
yshui has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Leaving]
kts has joined #dri-devel
kts has quit []
yshui has joined #dri-devel
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
nopjmp_ has joined #dri-devel
nopjmp has quit [Ping timeout: 480 seconds]
nerdopolis has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
yshui_ has joined #dri-devel
yshui has quit [Ping timeout: 480 seconds]
The_Company has quit []
sukuna1 has joined #dri-devel
glennk has joined #dri-devel
himal has joined #dri-devel
sukuna has quit [Ping timeout: 480 seconds]
yrlf has quit [Ping timeout: 480 seconds]
yrlf has joined #dri-devel
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #dri-devel
androidui has quit [Remote host closed the connection]
ZLangJIT has joined #dri-devel
ZLangJIT is now known as androidui
psykose has quit [Remote host closed the connection]
psykose has joined #dri-devel
mwalle has quit [Quit: WeeChat 3.8]
kts has joined #dri-devel
kzd_ has quit [Ping timeout: 480 seconds]
dolphin has joined #dri-devel
dviola has joined #dri-devel
frieder has joined #dri-devel
kts has quit [Quit: Leaving]
sima has joined #dri-devel
tzimmermann has joined #dri-devel
cascardo has joined #dri-devel
cascardo_ has quit [Ping timeout: 480 seconds]
fab has joined #dri-devel
fab is now known as Guest9068
rasterman has joined #dri-devel
yshui_ has quit [Ping timeout: 480 seconds]
yshui has joined #dri-devel
Duke`` has joined #dri-devel
vedranm has joined #dri-devel
a1batross has quit [autokilled: Possible spambot. Mail support@oftc.net if you think this is in error. (2024-11-11 07:39:06)]
sukuna1 has quit [Ping timeout: 480 seconds]
mbrost has quit []
sghuge has quit [Remote host closed the connection]
sghuge has joined #dri-devel
<dolphin> airlied, sima: Added you folks to the discussion thread about peek/poke access adding for EU debugger
<dolphin> thread "[PATCH v6 2/8] drm/ttm: Add ttm_bo_access"
<dolphin> feel free to pull in any relevant folks who might have opinions on the parasitic thread debugging vs. direct debugging
jsa1 has joined #dri-devel
heat has joined #dri-devel
kts has joined #dri-devel
kts has quit []
frankbinns has joined #dri-devel
cef has quit [Quit: Zoom!]
rossy_ has joined #dri-devel
cef has joined #dri-devel
karenw has joined #dri-devel
rossy has quit [Ping timeout: 480 seconds]
lynxeye has joined #dri-devel
warpme has joined #dri-devel
MrCooper_ has joined #dri-devel
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
MrCooper has quit [Ping timeout: 480 seconds]
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
heat has quit [Read error: Connection reset by peer]
epoch101 has quit []
heat has joined #dri-devel
<sima> dolphin, mbrost already pinged me about this
<dolphin> ah, ok, good. just returning from some time off so behind on mails
<sima> I'll reply with some thoughts, but I think the main suggestion I'll drop is that maybe we should have a "how is gpu debugging supposed to work" doc section
<sima> and collect acks from driver and probably more importantly, gdb folks
<sima> otherwise I fear massive derail going to happen here
<sima> also I think from the earlier parts of the thread, there's a confusion around "midlayer or not and what does it even mean"
<sima> which I think would be good to document in ttm DOC: sections too
<sima> at least I suggested mbrost to type up such a patch (but he's not around here rn)
<dolphin> yeah, there definitely seem to be different layers to the discussion, I tried to answer the high level "why do this?"
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
vliaskov has joined #dri-devel
Haaninjo has joined #dri-devel
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
valpackett has quit [Remote host closed the connection]
valpackett has joined #dri-devel
<sima> dolphin, airlied replied
<dolphin> I see your reply only?
<dolphin> ah, probably add ":" there and it makes sense
<sima> ah yes
<sima> at least I didn't murder someone with missing punctuation :-P
<sima> but was close, almost typed done instead of replied
pal1000 has joined #dri-devel
kts has joined #dri-devel
<dolphin> but yeah, overall on the details I expect there of course will be plenty of discussion, but will be good to first understand if folks are aligned at the high level
pal1000 has quit [Remote host closed the connection]
heat is now known as Guest9088
Guest9088 has quit [Remote host closed the connection]
heat has joined #dri-devel
illwieckz has quit [Quit: I'll be back!]
illwieckz has joined #dri-devel
Duke`` has quit []
<Lynne> its sad that the state of compute-only vulkan profiling is still exactly non-existent these days
<Lynne> modifying mesa to dump anyway crashes the GPU, nvidia's tools are graphics-only
nerdopolis has joined #dri-devel
damo221 has joined #dri-devel
<Lynne> using clockrealtimeext is like threading a needle with an excavator
karenw has quit [Ping timeout: 480 seconds]
damo22 has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Leaving]
gouchi has joined #dri-devel
rasterman has quit [Quit: Gettin' stinky!]
damo22 has joined #dri-devel
damo221 has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]
kts has joined #dri-devel
Company has joined #dri-devel
vliaskov has quit [Ping timeout: 480 seconds]
pcercuei has joined #dri-devel
kts has quit [Quit: Leaving]
vliaskov has joined #dri-devel
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
bmodem has joined #dri-devel
Karyon_ has joined #dri-devel
libv_ is now known as libv
Karyon has quit [Ping timeout: 480 seconds]
heat is now known as Guest9097
heat has joined #dri-devel
Guest9097 has quit [Remote host closed the connection]
Karyon_ has quit []
warpme has quit []
rasterman has joined #dri-devel
warpme has joined #dri-devel
tango_ is now known as Guest9100
tango_ has joined #dri-devel
warpme has quit []
Karyon has joined #dri-devel
Guest9100 has quit [Ping timeout: 480 seconds]
glennk has quit [Read error: Connection reset by peer]
glennk has joined #dri-devel
<dolphin> Christian still doesn't use IRC?
<sima> not that I know of
<dolphin> ok, will then probably have to take the time to answer in length to the email tomorrow
dolphin has quit [Quit: Leaving]
epoch101 has joined #dri-devel
kts has joined #dri-devel
alyssa has joined #dri-devel
damo22 has quit [Ping timeout: 480 seconds]
MrCooper_ is now known as MrCooper
dsimic is now known as Guest9105
dsimic has joined #dri-devel
Guest9105 has quit [Ping timeout: 480 seconds]
Caterpillar has joined #dri-devel
kzd has joined #dri-devel
smaeul_ has quit []
smaeul has joined #dri-devel
jhugo has joined #dri-devel
phire_ has joined #dri-devel
phire is now known as Guest9109
phire_ is now known as phire
rasterman has quit [Ping timeout: 480 seconds]
tzimmermann has quit [Quit: Leaving]
rasterman has joined #dri-devel
Guest9109 has quit [Ping timeout: 480 seconds]
heat is now known as Guest9110
Guest9110 has quit [Read error: Connection reset by peer]
heat has joined #dri-devel
ManMower has quit [Read error: Connection reset by peer]
Duke`` has joined #dri-devel
damo22 has joined #dri-devel
frieder has quit [Remote host closed the connection]
boratfromkz has joined #dri-devel
edolnx_ has joined #dri-devel
edolnx has quit [Ping timeout: 480 seconds]
edolnx has joined #dri-devel
gouchi has joined #dri-devel
glennk has quit [Remote host closed the connection]
edolnx_ has quit [Ping timeout: 480 seconds]
<alyssa> llvm 19 don't hurt me :(
glennk has joined #dri-devel
jsa1 has quit [Ping timeout: 480 seconds]
<HdkR> alyssa: Too late, it has already happened
<alyssa> yeah...
kts has quit [Quit: Leaving]
<alyssa> llvm19 getting me:
<alyssa> function_temp array float[3], deref_cast to float *, store_deref
<alyssa> and then deref_array+load_array
gouchi has quit [Remote host closed the connection]
<alyssa> is.. NIR expected to be able to handle that?
<alyssa> karolherbst: ^
mbrost has joined #dri-devel
rasterman has quit [Quit: Gettin' stinky!]
<jenatali> That looks fine?
<jenatali> IIRC there was a change Karol had in flight to optimize the cast with no pointer math into an array deref with index 0
<alyssa> jenatali: I'm think the issue is casting array to pointer and then nir_opt_copy_prop_vars can't see it
<alyssa> can probably add a pass to drop the cast and then should work maybe
<alyssa> but yeah if there's an MR I can cherrypick that's preferable :)
<alyssa> hm no not that
mbrost has quit [Ping timeout: 480 seconds]
* alyssa doesn't understand derefs enough for this
vliaskov_ has joined #dri-devel
vliaskov has quit [Ping timeout: 480 seconds]
gouchi has joined #dri-devel
<karolherbst> alyssa: yeah.. it's an annoying issue
<karolherbst> the tldr is that various nir passes fight each other here
bolson_ has joined #dri-devel
<karolherbst> we need to make passes smarter I think
<karolherbst> like the issue in LLVM is, that everything is just a plain pointer, if you think of C based inheritance, then it's almost impossible to add the right cast
<karolherbst> sometimes a field at offset 0 is used, sometimes the outer thing
bolson has quit [Ping timeout: 480 seconds]
<karolherbst> in that MR I _kinda_ tried to take into account how the pointer is used, but there are too many corner cases to do it sanely
mbrost has joined #dri-devel
karenw has joined #dri-devel
<alyssa> what do we do
boratfromkz has quit [Remote host closed the connection]
boratfromkz has joined #dri-devel
frankbinns has quit [Ping timeout: 480 seconds]
<karolherbst> I think we have to stop relying on the cast here. Maybe we should just assume it's alright, at least for CL and just trust the application isn't silly (tm), because data layouts are all well defined
<karolherbst> the actual type of the source data doesn't actually matter with CL
<karolherbst> but that's gonna be funky with the way we do derefs
mbrost has quit [Ping timeout: 480 seconds]
<karolherbst> sadly that idea doesn't work well with scratch memory..
mvlad has joined #dri-devel
frankbinns has joined #dri-devel
<boratfromkz> OK i post the last algorithm that made me smile again. after selecting a double value 72+72 you do +141+141 which comes from 1024-883 that line yields four times 72 and twice that of 69, now -883-26+512 of one triplet of two 72s and one 69, yields -184, where as another triplet when done with -840+512 yields -115 , so that should already say everything. I got it right this time. 26 comes
<boratfromkz> from 1024-883-115. It is either some modified quadratics or synthetic division theorem way probably, but works immensely well on vectors that i was after. The science is so strong at my side that i do not bother with conflicts anymore, i figured all out, and i win all battles anyways without touching abusers in any way anymore. I fly that high. Scientists got the numbers correctly
<boratfromkz> authored imo, i advise you to practice a bit and see yourself.
frankbinns has quit [Ping timeout: 480 seconds]
<zf> Is there a nice way I can dump the commands sent by mesa to the AMD GPU?
<zf> (I'm getting visual corruption trying to decode H.264 with VA, but not with Vulkan, and staring at my own code several times has not helped me find where I'm filling parameters wrong, so I figure I might try attacking the problem from the other end)
anujp has quit [Ping timeout: 480 seconds]
anujp has joined #dri-devel
coldfeet has joined #dri-devel
<karolherbst> alyssa: the main issue is, that C has weird rules. Like you can have a temporary array of uint_8[128], but then always cast it to the same struct. Atm even if we make all those passes more intelligent, we'd fail to promote this to SSA values. And the issue you are seeing there is simply a specialized variant of that (where source and dest types are
<karolherbst> somewhat related). I was considering a pass which works past IO lowering, but then if you have a single indirect, then that pass won't work anymore. But one thing we could do is, if we have a copy, we could try to introspect the incoming types and see if we could construct a path (with offset/idx 0) to the other (sub)type using deref_array and
<karolherbst> deref_struct. Like if a is struct { float[4] } and the b is float[4], we simply replace a with deref_struct(a, 0). If a is struct { struct T t; float } and b is struct { struct T t; double }, we'd use deref_struct(..., 0) on both
<karolherbst> just need to traverse the entire type chain probably
tobiasjakobi has joined #dri-devel
epoch101 has quit []
<karolherbst> and throw away more casts
<karolherbst> so maybe just need to make the cast optimization smarter? mhhh
boratfromkz has quit [Remote host closed the connection]
<alyssa> ok..
<alyssa> karolherbst: is this going to go away when we switch to llvm's spirv backend?
lynxeye has quit [Quit: Leaving.]
<karolherbst> alyssa: maybe? At least we can enable optimization levels which might get rid of some of those things for us...
<karolherbst> but that doesn't help anybody giving us spir-v from old tooling or something
<karolherbst> maybe I'll take another look once I'm done with SVM or so
jsa1 has joined #dri-devel
mbrost has joined #dri-devel
mbrost has quit [Remote host closed the connection]
<nowrep> zf: https://gitlab.freedesktop.org/nowrep/mesa/-/commits/ac-vcn_dec_msg it's very incomplete but maybe it can help
frankbinns has joined #dri-devel
tobiasjakobi has quit []
abhinav__ has joined #dri-devel
karenw has quit [Ping timeout: 480 seconds]
frankbinns has quit [Ping timeout: 480 seconds]
<zf> ah, thanks!
<zf> thanks for the fix for bug 12057, also :-)
sukuna has joined #dri-devel
sukuna has quit [Remote host closed the connection]
<alyssa> karolherbst: i'm not worried about spir-v in the wild
linkmauve has left #dri-devel [Error from remote client]
<karolherbst> right, but I am
sukuna has joined #dri-devel
<karolherbst> I really should try to figure out a good solution there, it's just not very critical in terms of functionality 🙃
<alyssa> this is blocking far41 release, so.. it's critical for us at least..
<alyssa> current plan is to backport the whole llvm18 stack..
<karolherbst> ohh, is it crashing? Or simply "it requires scratch memory, but we don't handle that case"?
<alyssa> the latter
<karolherbst> right... Intel had the same issue, they just set scratch to 0 and moved one
<karolherbst> *on
<alyssa> no i mean
<alyssa> load_scratch/store_scratch with llvm19 wasn't there with 18
<alyssa> no asahi driver shaders need scratch or spilling, this is asserted
<karolherbst> yeah, but intel has a backend pass to clean it up
<karolherbst> so they opt to ssa a bit later
<jenatali> Oh this is asahi's internal shaders, fun
<karolherbst> but regardless of existing workarounds, I'd like to get it fixed at some point
<alyssa> jenatali: yeah, although that's ultimately just a smoke test for cl being horribly broken or not
linkmauve has joined #dri-devel
<jenatali> I mean, CL needs real scratch
<karolherbst> maybe let me think about this issue this week and see if I come up with anything
<alyssa> Yes, but if code didn't use scratch on fedora 40, it suddenly spilling is a severe perf regression
<jenatali> Oh sure
<alyssa> ultimately this is all a symptom of the LLVM SPIR-V circus
<karolherbst> yeah... I think intel checks the offset and turns matching thing to an ssa value
<jenatali> Yep
<karolherbst> we could have a more generic pass for that, but that still keeps the core issue there
<karolherbst> alyssa: I don't think the spir-v backend in llvm is gonna to change that, because the LLVM IR doesn't have that knowledge. The solution everybody goes for atm is just add more spir-v extensions 🙃
<alyssa> i see.
<karolherbst> and... that extension won't map nicely to nir anyway
<karolherbst> I think
<jenatali> karolherbst: I disagree. DXIL isn't going to support scratch, and the HLSL -> SPIR-V pipeline should also be capable of producing DXIL as part of the HLSL upstreaming
<jenatali> So I think the requisite info is going to be added to LLVM IR to stop it doing dumb things
iive has joined #dri-devel
<karolherbst> jenatali they removed it, and I'm sure they won't bring it back
<jenatali> Yeah we'll see about that
<karolherbst> well :)
<karolherbst> but as it stands, there are LLVM versions where there is simply a pointer type without specifics
<jenatali> Sure, but I think it will get better in the future
<karolherbst> mhh, how so?
<zf> oh that's interesting. this fixes it: <https://paste.debian.net/1335223/>
<karolherbst> but in any case, I kinda wanted to solve this issue, because it's kinda fixable, just requires more code (tm)
<zf> nowrep: does this look potentially correct? no idea if this is a driver bug or an application bug; VA is so underspecified...
<jenatali> Folks are interested in getting Clang to produce graphics/Vulkan shaders, which have a lot more restrictions than CL
<jenatali> This stuff will need to be solved before the SPIR-V layer for that to work
<karolherbst> make "SPV_KHR_untyped_pointers" required in the next vulkan version, done
epoch101 has joined #dri-devel
lina has joined #dri-devel
<karolherbst> or well.. it simply relies on SPV_KHR_untyped_pointers if you use LLVM to compile to vulkan spir-v
<karolherbst> maybe I'm just less optimistic than you on that one :D
<nowrep> zf: you should create the context with the coded size in the bitstream, so for h264 that's always 16 aligned
<zf> hmm okay, and recreate it if it changes?
<zf> the Vulkan side seems to be fine with this, but maybe that's a Vulkan (spec?) bug
<nowrep> yeah recreate if the size changes
<zf> should I also be recreating it for Vulkan? it seems to work fine as-is...
<nowrep> yes
frankbinns has joined #dri-devel
<zf> got it, thanks
<alyssa> karolherbst: if perf is trash on all drivers, that's not going to fly :p
<karolherbst> that's true, but I mean, we can fix this on a nir level, just have to make the optimizations smarter 🙃
<karolherbst> generally the idea would be to be more relaxed comparing those two sides of copies (or load/stores) and figure out how to make it work.
<karolherbst> alyssa: weird idea: try adding a padding member at offset 0 🙃 and see if that is a suitable workaround. I think that changes the generated code enough. But might end up with something similar
frankbinns has quit [Ping timeout: 480 seconds]
<karolherbst> mhh though in your case it's an array...
tobiasjakobi has joined #dri-devel
<zf> xrandr
<zf> oops, wrong window :P
tobiasjakobi has quit []
lina has quit []
lina has joined #dri-devel
<lina> I worked out how to ship llvm18 spirv stuff on F41 so at least this isn't on fire any more ^^
lina has quit []
lina has joined #dri-devel
coldfeet has quit [Remote host closed the connection]
frankbinns has joined #dri-devel
jsa1 has quit [Ping timeout: 480 seconds]
frankbinns has quit [Ping timeout: 480 seconds]
epoch101 has quit []
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
<dj-death> alyssa: welcome to our world, I'm sorry.
epoch101 has joined #dri-devel
himal has quit [Ping timeout: 480 seconds]
Kayden has quit [Quit: Leaving]
Kayden has joined #dri-devel
nerdopolis has quit [Ping timeout: 480 seconds]
Duke`` has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]
Guest9068 has quit []
mvlad has quit [Remote host closed the connection]
bolson has joined #dri-devel
sima has quit [Ping timeout: 480 seconds]
bolson_ has quit [Ping timeout: 480 seconds]
figaroseen has joined #dri-devel
<karolherbst> yeah.. I really should bump up the prio on that one 🙃
<figaroseen> alyssa: they silence real people, if you want to preserve your work, you gonna have to cope with their rules and you might be as young that maybe it's beneficial to you, another plan would be since all real people are at my side including gangsters and real forces to make a meat out of this syndicate with my personal opinion there yes i would do it for personal reasons since they tried to
<figaroseen> kill me, but for you i would not advise that path, just keep doing the nonsense work and have fun , maybe one day you get gifted some new ryzen or just buy one that works ok, the last eight generations of intel are also pretty ok. Those channels have turned into a joke anyhow to some degree the least, but most important the systems that can be redesigned have enough of base goodies to do
<figaroseen> that. As for fact , windows, osx , linux and so many other oses, are suitable to make such hacks i have queued up.
alyssa has quit [Quit: alyssa]
karolherbst has quit [Quit: bye bye]
karolherbst has joined #dri-devel
figaroseen has quit [Remote host closed the connection]
sukuna has quit [Remote host closed the connection]
sukuna has joined #dri-devel
nerdopolis has joined #dri-devel
sukuna has quit [Remote host closed the connection]
sukuna has joined #dri-devel
frankbinns has joined #dri-devel
sukuna1 has joined #dri-devel
sukuna has quit [Ping timeout: 480 seconds]
frankbinns has quit [Ping timeout: 480 seconds]
glennk has quit [Remote host closed the connection]
glennk has joined #dri-devel