ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
<robmur01>
yeah, until Android exclusively ships bleeding-edge mainline kernels, that would require vendors to upstream drivers 2-3 years before they've even designed the SoC ;)
<robmur01>
typical vendors are writing brand-new code against GKI branches based on 5.10 or 5.15 (which may eventually get forward-ported to mainline and thrown over the wall if we're lucky)
<CounterPillow>
I was about to sarcastically describe why they might not bother with upstreaming but then I remembered I should not start flamewars with people who might work for companies I eventually seek employment at.
mbrost has quit [Ping timeout: 480 seconds]
<karolherbst>
jenatali: uhh... I have to figure out from a spir-v if `-cl-single-precision-constant` was set... I think...
<jenatali>
Oh?
<jenatali>
Why?
<karolherbst>
to set treat_doubles_as_floats correctly, no?
<jenatali>
Nah, we can just delete that flag
<karolherbst>
ohhh
<karolherbst>
yeah, fair enough :)
<karolherbst>
that makes everything easier :D
<jenatali>
If cl-single-precision-constant was set, then you won't see doubles in the printf string unless they were really doubles
<karolherbst>
right...
<karolherbst>
and if it's in the spirv, the user is asking for it anyway...
<jenatali>
Otherwise, clang does the C thing of promoting floats to double because double is the "native" floating point type
<karolherbst>
yeah.. I'm more concerned about spirv as the input, not clc
<karolherbst>
as there it's not in our control how it's compiled
<karolherbst>
so I wonder if we want to keep that option anyway, but only depend on if fp64 support is enabled for the device or not?
<karolherbst>
and then we can force fp32 for spir-vs
<jenatali>
Ah yeah I see what you're saying, that makes sense
kzd has quit [Quit: kzd]
<karolherbst>
I'll just push `-cl-single-precision-constant` to the frontend and see how that works out :)
Jeremy_Rand_Talos__ has quit [Remote host closed the connection]
Jeremy_Rand_Talos__ has joined #dri-devel
<jenatali>
Yeah, that's what I've done
<karolherbst>
mhh...
<karolherbst>
it's not using fp64 constants by default...?
<karolherbst>
was there some condition for it?
kzd has joined #dri-devel
<karolherbst>
ehh wait...
<karolherbst>
it's 32 bit in the spirv, but 64 bit in the LLVM...
<karolherbst>
mhhhhh
<karolherbst>
interesting...
<karolherbst>
jenatali: looks like llvm just handles that for us now π
<karolherbst>
unless I pass "+cl_khr_fp64" or "+__opencl_c_fp64" to clang the constants all end up as fp32 ones in the spirv...
<karolherbst>
but I'm also seeing "call spir_func i32 (i8 addrspace(2)*, ...) @printf(i8 addrspace(2)* noundef getelementptr inbounds ([8 x i8], [8 x i8] addrspace(2)* @.str, i64 0, i64 0), float noundef 0x4024B0F280000000)"...
<karolherbst>
yeah.. it becomes "call spir_func i32 (i8 addrspace(2)*, ...) @printf(i8 addrspace(2)* noundef getelementptr inbounds ([8 x i8], [8 x i8] addrspace(2)* @.str, i64 0, i64 0), double noundef 1.034560e+01)" with enabled fp64
<karolherbst>
... that also explains why I have seen regressions in my spirv based runs and not the clc ones...
<karolherbst>
I think that changed in llvm-16 actually...
<karolherbst>
I suspect my work on forcing enabled features made us not claim fp64 support and all that
<karolherbst>
so we don't run into this with llvm-14+
<jenatali>
Oh cool
<karolherbst>
I guess I will only handle the spir-v part then :D
<karolherbst>
but yeah.. that explains it then
<jenatali>
karolherbst: I added that when I was still using 12 I think
<karolherbst>
yeah...
<karolherbst>
that's why I was confused because that llvm check is there since llvm-8?
<karolherbst>
ehh
<karolherbst>
llvm-4 even
<karolherbst>
could also been that `-USPIRV` and `-USPIR` part...
<karolherbst>
as that would otherwise enable rando extes
<karolherbst>
*exts
<karolherbst>
apparently not cl_khr_fp64
<karolherbst>
jenatali: anyway.. the reason I ran into the 64 bit arg mess was because of `%s` args as they are 64 bit anyway ....
<jenatali>
Right
<karolherbst>
and then encode ids like... 0x1de
<karolherbst>
maybe I really just fix the callbacks and move on...
macromorgan has quit [Quit: Leaving]
macromorgan has joined #dri-devel
<karolherbst>
oh well.. I'll decide it tomorrow then
yyds has joined #dri-devel
soreau has quit [Ping timeout: 480 seconds]
columbarius has joined #dri-devel
co1umbarius has quit [Ping timeout: 480 seconds]
soreau has joined #dri-devel
yyds has quit [Remote host closed the connection]
yyds has joined #dri-devel
aravind has joined #dri-devel
benjaminl has quit [Remote host closed the connection]
benjaminl has joined #dri-devel
<gfxstrand>
karolherbst: Did you test the alignment patches or just read them over?
Company has quit [Quit: Leaving]
mbrost has joined #dri-devel
yyds has quit [Remote host closed the connection]
yyds has joined #dri-devel
yyds has quit [Remote host closed the connection]
dviola has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
frankbinns1 has joined #dri-devel
frankbinns has quit [Ping timeout: 480 seconds]
mripard has quit [Ping timeout: 480 seconds]
aravind has quit [Ping timeout: 480 seconds]
alatiera has quit [Quit: Connection closed for inactivity]
mripard has joined #dri-devel
oneforall2 has quit [Remote host closed the connection]
oneforall2 has joined #dri-devel
glennk has joined #dri-devel
mbrost has joined #dri-devel
aravind has joined #dri-devel
Duke`` has joined #dri-devel
fab has joined #dri-devel
benjaminl has quit [Remote host closed the connection]
benjaminl has joined #dri-devel
tomeu has joined #dri-devel
<tomeu>
how do people figure out what specific test might have caused a GPU hang when it only happens under high concurrency inside deqp-runner?
<tomeu>
anholt_: maybe you have some tricks?
kzd has quit [Quit: kzd]
Duke`` has quit [Ping timeout: 480 seconds]
kts has joined #dri-devel
yyds has joined #dri-devel
glennk has quit [Ping timeout: 480 seconds]
fab has quit [Quit: fab]
kts has quit [Quit: Konversation terminated!]
bmodem has joined #dri-devel
kts has joined #dri-devel
kts has quit []
kts has joined #dri-devel
sima has joined #dri-devel
docelwilif^ has quit [Remote host closed the connection]
tshikaboom has joined #dri-devel
tomba has joined #dri-devel
fab_ has joined #dri-devel
fab_ is now known as Guest9387
mvlad has joined #dri-devel
frieder has joined #dri-devel
oneforall2 has quit [Remote host closed the connection]
apinheiro has joined #dri-devel
oneforall2 has joined #dri-devel
sghuge has quit [Remote host closed the connection]
sghuge has joined #dri-devel
crabbedhaloablut has joined #dri-devel
glennk has joined #dri-devel
rgallaispou has joined #dri-devel
donaldrobson has joined #dri-devel
eukara has quit [Ping timeout: 480 seconds]
tursulin has joined #dri-devel
benjaminl has quit [Remote host closed the connection]
benjaminl has joined #dri-devel
kts has quit [Ping timeout: 480 seconds]
i509vcb has quit [Quit: Connection closed for inactivity]
hansg has joined #dri-devel
rasterman has joined #dri-devel
crabbedhaloablut has quit []
lynxeye has joined #dri-devel
crabbedhaloablut has joined #dri-devel
frankbinns1 is now known as frankbinns
vliaskov has joined #dri-devel
<karolherbst>
gfxstrand: I've ran them, just that they didn't do anything for the issue I was seeing as I was also hitting an LLVM bug. But I can run the CL CTS with those and see if anything break if you want
anujp has quit [Remote host closed the connection]
<karolherbst>
jenatali: actually... for spir-v the printf double thing is also not a problem, because the only valid way of doing is to have a spir-v requiring "OpCapability Float64", which isn't valid to pass to the runtime if it doesn't support cl_khr_fp64 :D
<karolherbst>
I think I'd rather fix my spirv testing here...
<karolherbst>
and we can indeed drop that option
<karolherbst>
uhh.. why is `-cl-single-precision-constant` ignored on the clang CLI...
<karolherbst>
needs to be -Xclang -cl-ext=-all ...
mbrost has quit [Ping timeout: 480 seconds]
<karolherbst>
yeah....
<karolherbst>
-cl-single-precision-constant doesn't work at all...
<karolherbst>
at least now how we are using clang...
bmodem has quit [Ping timeout: 480 seconds]
<karolherbst>
*sigh*
<karolherbst>
not in the mood of debugging this honestly :D
kts has joined #dri-devel
heat has joined #dri-devel
kts has quit [Ping timeout: 480 seconds]
<karolherbst>
oh actually.. it works in libclang.. I forgot to switch to online compilation.. oops
<karolherbst>
ohh it doens't.. I forgot to enable fp64.. uhhh
<karolherbst>
whatever...
<karolherbst>
I spending too much time on printf...
<gfxstrand>
eric_engestrom: I think I'm going to just restructure nak a bit
<eric_engestrom>
ack
<karolherbst>
I have a handy git alias btw: rustfmt = ! git ls-files */{lib,main}.rs | xargs rustfmt
<karolherbst>
(which I would have to update for nak... π)
<eric_engestrom>
gfxstrand: I'll drop this MR then, but now you know which line to edit when you have your new filename :)
Guest9387 has quit []
<eric_engestrom>
karolherbst: if you have `shopt -s globstar` in your shell you can simply do `rustfmt **/lib.rs` :)
<karolherbst>
but I just want to do that on git tracked files tho :D
<karolherbst>
otherwise it might pull in generated files and such
<karolherbst>
but yeah...
<eric_engestrom>
well, in ci it's run on `src/**/lib.rs`, if you do the same locally that will not include generated files unless you put your builddir in src/ :P
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
lynxeye has quit [Quit: Leaving.]
benjaminl has quit [Ping timeout: 480 seconds]
donaldrobson has quit [Ping timeout: 480 seconds]
frieder has quit [Remote host closed the connection]
hansg has quit [Quit: Leaving]
ced117 has quit [Ping timeout: 480 seconds]
JohnnyonFlame has joined #dri-devel
ced117 has joined #dri-devel
gouchi has joined #dri-devel
benjaminl has joined #dri-devel
rasterman has quit [Quit: Gettin' stinky!]
ced117 has quit [Ping timeout: 480 seconds]
sarnex has quit [Read error: No route to host]
glennk has quit [Ping timeout: 480 seconds]
sarnex has joined #dri-devel
pcercuei has joined #dri-devel
fab has quit [Quit: fab]
fab has joined #dri-devel
fab has quit []
fab has joined #dri-devel
mandelstays has joined #dri-devel
<DemiMarie>
mattst88: sorry about that.
<DemiMarie>
robmur01: I had not considered that Android doesnβt ship bleeding-edge kernels. That explains so much!
<DemiMarie>
Iβm a bit salty about Android using proprietary drivers because it means no virtio-GPU native context support, which means no decently secure GPU acceleration in pKVM VMs.
tursulin has quit [Ping timeout: 480 seconds]
YuGiOhJCJ has joined #dri-devel
fab has quit [Quit: fab]
pac85 has joined #dri-devel
mbrost has joined #dri-devel
i509vcb has joined #dri-devel
alyssa has quit [Quit: alyssa]
Duke`` has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]