ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
* dschuermann takes the flowers. ty! :)
OftenTimeConsuming has quit [Remote host closed the connection]
ella-0_ has joined #dri-devel
ella-0 has quit [Read error: Connection reset by peer]
pnowack has quit [Quit: pnowack]
OftenTimeConsuming has joined #dri-devel
<alyssa> dschuermann: now here's a "fun" backend problem
<alyssa> some instructions on Bifrost don't allow any swizzles even though they're vectorized
<alyssa> or restrict which swizzles are allowed
<alyssa> so we have to go in and insert useless moves to lower
<alyssa> a common case is an instruction that only allows the identity (xy) but the caller wants replication (xx) ...
<alyssa> ... even though the producing instruction was replicated to begin with
<alyssa> In that case we can rewrite xx to xy and then not have any move. But detecting that case is somewhat nontrivial!
<dschuermann> ugh! what about other cases than restricting to identity?
<alyssa> hmm, the MUX.v2i16 instruction has "swaps" instead of "swizzles"
<alyssa> so you can do xy or yx, but need to lower xx/yy
<alyssa> (MUX.v2i16 roughly maps to b16csel in NIR)
<dschuermann> gosh
<alyssa> other instructions in term have "replication
<alyssa> " instead of "swizzle", in which case you can do xx/yy but not xy/yx
<alyssa> (In theory. In practice there's no lowering because the semantic is replication.)
<dschuermann> does that only differ per instruction or also per source?
<alyssa> per source, of course
<alyssa> Okay here is a fun one
<alyssa> IMUL.v4i8
<alyssa> (imul for packed 4x8-bit)
<alyssa> the first source cannot have any swizzle, it must be the identity.
<alyssa> the second source can be either the identity xyzw, or any replication xxxx/yyyy/zzzz/wwww but that's it
<alyssa> SWZ.v4i8
<alyssa> (nir_op_mov for 4x8-bit with swizzle)
<dschuermann> oh dear... so much about bifrost 'just' vec2 for 16bit
<alyssa> SWZ.v4i8 allows the following swizzles
<alyssa> xxxx, yyyy, zzzz, wwww, xxyy, zzww, yxwz, wzyx
<alyssa> (like, the swizzle is a 3-bit enum, even though there are 256 different swizzles)
rasterman has quit [Quit: Gettin' stinky!]
<alyssa> which does make you wonder how to implement arbitrary 8-bit vec4 swizzles doesn't it ..
<dschuermann> oh wow! nice task: does this set of swizzles allow arbitrary swizzles and for bonus points: what is the worst case number of shuffle instructions? :P
<alyssa> I worked this out once, uh
<alyssa> I seem to recall a solution with 2 shuffles for any swizzle
mbrost has joined #dri-devel
<alyssa> introducing...
<alyssa> MKVEC.v4i8
<alyssa> nir_op_vec4 for 8-bit sources, each source can specify a single lane (byte)
<alyssa> but the lane selects are single bits -- you can only pick byte #0 or byte #2
<alyssa> if you tie all the sources together, that means MKVEC.v4i8 acts as a swizzle: xxxx, xxxz, xxzx, xxzz, ...
<alyssa> I believe I convinced myself any vec4 swizzle can be done with MKVEC.v4i8 followed by SWZ.v4i8, or something like that
<dschuermann> hm, without much thinking (because it's getting late here), my first idea would be some very late backend NIR pass which inserts mov's to do the swizzles
<alyssa> ahhhh, no, I think my too-clever-for-my-own-good solution was:
<alyssa> 1. temp = (packed_vec4 >> 8)
<alyssa> 2. swizzled = mkvec(.., .., .., ..)
<alyssa> where each arg of the mkvec is given by the truth table
<alyssa> x --> packed_vec4.b0
<alyssa> y --> temp.b0
<alyssa> z --> packed_vec4.b2
<alyssa> w --> temp.b2
<alyssa> It should be obvious that works for any possible vec4 swizzle and that it requires at most 2 instructions.
<dschuermann> but doesn't shortcut on the simple swizzles?
<alyssa> sure, I'm answering "what is the worst case number of shuffle instructions?"
<dschuermann> right... two isn't bad
<alyssa> the real answer is of course "who uses 8-bit support anyway?"
<dschuermann> some pseudo-op + late lowering in your backend might help recognize pattern you can optimize
<alyssa> for now we don't support vectorized 8-bit ops at all
<alyssa> and so far have no use case to justify the massive effort required to change that
<dschuermann> yeah, I'm already back to the 16bit stuff :)
<alyssa> yep yep
<alyssa> 16bit is far more reasonable
<alyssa> (and the worst case is a single shuffle instruction, since SWZ.v2i16 supports all 4 possible swizzles)
<alyssa> ---Wait, no
<alyssa> SWZ.v2i16 does not support the identity swizzle 🙃
<alyssa> The encoding that should be SWZ.v2i16 + identity is actually...
<alyssa> ....MOV.i32
tursulin has quit [Read error: Connection reset by peer]
gawin has quit [Ping timeout: 480 seconds]
mbrost has quit [Read error: Connection reset by peer]
boistordu has joined #dri-devel
co1umbarius has joined #dri-devel
columbarius has quit [Ping timeout: 480 seconds]
thellstrom1 has joined #dri-devel
thellstrom has quit [Remote host closed the connection]
nchery has quit [Ping timeout: 480 seconds]
NiksDev has joined #dri-devel
<jekstrand> dschuermann: Having ideas without thinking? You must be turning into a senior engineer!
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
ngcortes has quit [Remote host closed the connection]
guru_ has joined #dri-devel
oneforall2 has quit [Ping timeout: 480 seconds]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
lemonzest has quit [Quit: WeeChat 3.3]
<alyssa> anholt: !14370 marge is broken on the inside
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
tacokoneko has joined #dri-devel
<tacokoneko> thank you very much to gerddie who just fixed a bug I was struggling with for the past week https://gitlab.freedesktop.org/gerddie/mesa/-/tree/virgl-fix-shared-vtx-index-buffer
<tacokoneko> other software affected by the same issue included geodesicgears from xscreensaver and legacy versions of Minecraft. i am very happy with his patch it fixes all of them
idr has quit [Quit: Leaving]
<HdkR> Nice. I should keep virgl improvements on my radar since I'm using Parallels these days
<jekstrand> Just need Zink on venus on MoltenVK :)
<HdkR> If the VM takedown issues can be fixed on the virgl side rather than the kernel side I would be happy :P
<jekstrand> If the VM is doing it right, it should be able to run Vulkan (and hence MoltenVK) in a subproess where it should be reasonably safe. Assuming the kernel is robust, that is.
<HdkR> Running Half-Life 2 in a VM with Virgl passthrough is enough to crash the full VM for Parallels :D
<jekstrand> That sounds like a virgil kernel problem
boistordu has quit [Ping timeout: 480 seconds]
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
<HdkR> Probably. kernel log is filled with `1486695.592757] [drm:virtio_gpu_dequeue_ctrl_func [virtio_gpu]] *ERROR* response 0x1200 (command 0x207)`
<HdkR> Either that or their MacOS side interface explodes
<jekstrand> ¯\_(ツ)_/¯
<HdkR> Need that Native Linux mesa driver to resolve my woes :P
<jekstrand> Start hacking!
<jekstrand> :P
<jekstrand> Unlike me, you've already got the hardware. :P
<HdkR> I'm busy bringing real games to the hardware for when the driver works ;)
<jekstrand> hehe
<jekstrand> It does sound terribly interesting
<jekstrand> But I don't want to get conned into writing a kernel driver. :-P
<Sachiel> (again)
<jekstrand> :P
<HdkR> That means you have experience and are already a good fit for it though
* HdkR hides Android experience under the rug
<jekstrand> Honstly, it wouldn't be too terrible, depending on how the submit hardware works.
mbrost has joined #dri-devel
<HdkR> They're crazy enough to embed some IOKit textual thing. It could be just as nutty.
<jekstrand> Intel HW seems far more annoying than it needs to be. Some of it is necessary like juggling page tables.
<HdkR> Dealing with page tables gives me a headache. Setting up the PML4 for a VM was about all I could handle
<HdkR> And at least when I long jump from 64-bit mode to 32-bit mode, I only need to set up some segments! :D
<jekstrand> The best part is that every level of the page tables is technically different except that most are the same except when they're not.
<jekstrand> And Intel (I almost said "we" there. Hah!) has two different kinds of page tables for global (used for context images, display and a few other things) and the per-process page tables used for everything touchable by userspace.
<HdkR> Very cute
sdutt has quit [Read error: Connection reset by peer]
sdutt has joined #dri-devel
<jekstrand> Every part of the submit hardware has something pathologically annoying.
sdutt has quit [Read error: Connection reset by peer]
<HdkR> Required by law
mattrope has quit [Ping timeout: 480 seconds]
heat has joined #dri-devel
fxkamd has quit []
tzimmermann has joined #dri-devel
Duke`` has joined #dri-devel
xlei_ has joined #dri-devel
xlei has quit [Ping timeout: 480 seconds]
heat has quit [Remote host closed the connection]
YuGiOhJCJ has joined #dri-devel
dviola has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
itoral has joined #dri-devel
mclasen has quit [Ping timeout: 480 seconds]
mbrost has joined #dri-devel
Duke`` has quit [Ping timeout: 480 seconds]
mbrost has quit [Remote host closed the connection]
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
lemonzest has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
OftenTimeConsuming has joined #dri-devel
karolherbst has joined #dri-devel
MajorBiscuit has joined #dri-devel
Major_Biscuit has joined #dri-devel
<tzimmermann> airlied, danvet, FYI still nothing new in drm-misc-next-fixes this week
MajorBiscuit has quit [Ping timeout: 480 seconds]
tursulin has joined #dri-devel
<dschuermann> jekstrand: hehe, or just falling asleep :-]
agners has quit [Quit: WeeChat 3.4]
pcercuei has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Read error: Connection reset by peer]
camus has joined #dri-devel
pnowack has joined #dri-devel
camus1 has quit [Remote host closed the connection]
mlankhorst has joined #dri-devel
ybogdano has quit [Read error: Connection reset by peer]
rasterman has joined #dri-devel
mvlad has joined #dri-devel
sagar_ has quit [Remote host closed the connection]
sagar_ has joined #dri-devel
aravind has joined #dri-devel
pcercuei has quit [Quit: Lost terminal]
pcercuei has joined #dri-devel
tacokoneko has quit [Remote host closed the connection]
flacks has quit [Quit: Quitter]
flacks has joined #dri-devel
Major_Biscuit has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #dri-devel
i-garrison has quit []
gawin has joined #dri-devel
i-garrison has joined #dri-devel
mclasen has joined #dri-devel
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
itoral has quit [Remote host closed the connection]
itoral has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
itoral has quit [Remote host closed the connection]
nchery has joined #dri-devel
yk has joined #dri-devel
Peste_Bubonica has joined #dri-devel
Company has joined #dri-devel
<tomba> drm-intel/drm-intel-gt-next failed to merge while pushing a simple omapdrm fix to drm-misc-next. Anyone want to have a look?
kts has joined #dri-devel
JohnnyonFlame has joined #dri-devel
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
nchery has quit [Ping timeout: 480 seconds]
sdutt has joined #dri-devel
Company has quit [Quit: Leaving]
nchery has joined #dri-devel
Haaninjo has joined #dri-devel
Peste_Bubonica has quit [Quit: Leaving]
gawin has quit [Ping timeout: 480 seconds]
xlei_ is now known as xlei
mattrope has joined #dri-devel
fxkamd has joined #dri-devel
yk has quit [Read error: Connection reset by peer]
yk has joined #dri-devel
mattrope has quit [Remote host closed the connection]
Duke`` has joined #dri-devel
luckyxxl has joined #dri-devel
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
nchery has quit [Remote host closed the connection]
nchery has joined #dri-devel
luckyxxl_ has joined #dri-devel
<anholt> alyssa: that error will happen sometimes when we're getting errors from gitlab, like we are due to the ongoing git issues.
luckyxxl has quit [Ping timeout: 480 seconds]
aravind has quit [Ping timeout: 480 seconds]
Company has joined #dri-devel
LexSfX has quit []
LexSfX has joined #dri-devel
<zmike> dcbaker / eric_engestrom: is that new stable syntax tag in use yet?
ybogdano has joined #dri-devel
<dcbaker> zmike: not yet
heat has joined #dri-devel
ngcortes has joined #dri-devel
mattrope has joined #dri-devel
gawin has joined #dri-devel
idr has joined #dri-devel
<jenatali> alyssa: Did you mean to comment on on !14400 after your r-b comment? Not sure why you pasted the commit log entry as a comment
tzimmermann has quit [Quit: Leaving]
<jenatali> I.e. any reason I shouldn't go ahead and merge it
gouchi has joined #dri-devel
lemonzest has quit [Quit: WeeChat 3.3]
<jekstrand> jenatali: I think that's just alyssa's very weird way of interacting with gitlab
<jenatali> That was my guess, just want to make sure it wasn't supposed to be some kind of "wait, don't do this" comment instead
mlankhorst has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Ping timeout: 480 seconds]
xlei has quit [Quit: ZNC 1.8.2 - https://znc.in]
heat has quit [Ping timeout: 480 seconds]
xlei has joined #dri-devel
sdutt has quit []
sdutt has joined #dri-devel
ybogdano has quit [Remote host closed the connection]
ybogdano has joined #dri-devel
ramaling has quit [Remote host closed the connection]
ramaling has joined #dri-devel
Company has quit [Quit: Leaving]
JohnnyonFlame has quit [Ping timeout: 480 seconds]
<kisak> jenatali: my joke about tesselation taking more than twice as many patches as it initially looked was supposed to be a joke, I didn't expect you to take it seriously :P
<jenatali> kisak: Yeah, I didn't either. It's not quite twice as many as original I think since it's just based on a few other feature branches
<jenatali> Yeah it's only 41
mattrope has quit [Ping timeout: 480 seconds]
aswar002_ has joined #dri-devel
<kisak> might be nice to update docs/features.txt and add notes to docs/relnotes/new_features.txt as you scratch off this bigger ticket items.
<kisak> s/this/these
<jenatali> Oh yeah, I always forget about those
aswar002 has quit [Ping timeout: 480 seconds]
pzanoni has quit [Ping timeout: 480 seconds]
<idr> So... CivilizationV-trim--s705-761-f762-v20201203.trace says it fails, but it also says there are zero pixels different.
<anholt> checksum changed but below the delta threshold for the perceptual image diffing, I'd guess.
<idr> Ah.
pzanoni has joined #dri-devel
<idr> It's in a test that won't block a merge, so I'm not worried. I just thought I'd mention it... in case it's an unknown oddity.
<idr> anholt: I'm planning to mess about with r300 this weekend... does that driver produce data for shader-db? Or is that a thing that still needs to be added?
<anholt> it can crash on some of shader-db, but just take some plausible subset that doesn't crash
<idr> Lol. Okay. :)
<anholt> if you want to help r300, https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14309 is the big one (make wine work on shaders of that card's era)
luckyxxl_ has quit []
mattrope has joined #dri-devel
<idr> My plan for this weekend was to make r300 use the generic pass from !14308.
<anholt> would probably be good for NTT, though use_tgsi debug flag still exists so not sure if we want to retire the old code yet.
* idr looks at !14309...
<idr> Oh, right... this is like the old problem that r200 had with negative offsets in constant array indexing. We did shader math instead of just adjusting where things were in the array to (try to) eliminate the negative offsets.
yoslin has quit [Quit: WeeChat 3.3]
yoslin has joined #dri-devel
yoslin_ has joined #dri-devel
yoslin_ has quit []
NiksDev has quit [Ping timeout: 480 seconds]
yoslin_ has joined #dri-devel
yoslin has quit [Ping timeout: 480 seconds]
yoslin_ has quit []
yoslin has joined #dri-devel
yoslin has quit [Quit: WeeChat 3.3]
yoslin has joined #dri-devel
haagch has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
haagch has joined #dri-devel
<jenatali> Looks like CI runners are having problems. CI jobs are stuck in pending state for quite a long time, even basic ones like sanity
yoslin has quit [Quit: WeeChat 3.3]
<anholt> jenatali: the git issues cause slow fetches, so I would expect our runners to be very backed up
<jenatali> Oh, yeah that makes sense
<jenatali> Too bad
yoslin has joined #dri-devel
JohnnyonFlame has joined #dri-devel
yoslin has quit [Quit: WeeChat 3.3]
anholt has quit [Remote host closed the connection]
anholt has joined #dri-devel
yoslin has joined #dri-devel
yoslin has quit [Quit: WeeChat 3.3]
<airlied> did someone from intel leave drm-tip unresolved? seeing a conflict in intel_fbc.c
yoslin has joined #dri-devel
yoslin has quit []
gawin has quit [Remote host closed the connection]
yoslin has joined #dri-devel
<daniels> jenatali: yeah, I’ll try to fix when I’m back home
<jenatali> daniels: Thanks! No rush, didn't realize the runners getting backed up was related to the git problems, but it makes sense. I can wait :)
ngcortes has quit [Ping timeout: 480 seconds]
dolphin has quit [Ping timeout: 480 seconds]
shankaru1 has quit [Ping timeout: 480 seconds]
pzanoni has quit [Ping timeout: 480 seconds]
dolphin has joined #dri-devel
ybogdano has quit [Remote host closed the connection]
pzanoni has joined #dri-devel
<daniels> no prob, thanks for letting us know :)
ybogdano has joined #dri-devel
Haaninjo has quit [Quit: Ex-Chat]
pcercuei has quit [Quit: Lost terminal]
ngcortes has joined #dri-devel
shankaru has joined #dri-devel
kts has quit [Quit: Konversation terminated!]
pcercuei has joined #dri-devel
<alyssa> jenatali: I did not mean to paste the patch, no
<alyssa> that's a bug in my python script
<alyssa> well. I'm the bug, but
<jenatali> Cool, once CI is working again I'll go ahead and merge that then
mvlad has quit [Remote host closed the connection]
<alyssa> sounds good
Duke`` has quit [Ping timeout: 480 seconds]
mattrope has quit [Ping timeout: 480 seconds]
mattrope has joined #dri-devel
heat has joined #dri-devel
gouchi has quit [Remote host closed the connection]
ramaling_ has joined #dri-devel
ramaling has quit [Ping timeout: 480 seconds]
camus1 has joined #dri-devel
camus has quit [Read error: Connection reset by peer]
jzhang has joined #dri-devel
Kayden has quit [Quit: ding dong the vpn is dead time to find a wire somewhere in town]
<jzhang> Hi, I have some questions to freedesktop CI on their gitlab, does anyone know a ML or contact?
ngcortes has quit [Ping timeout: 480 seconds]
cphealy has joined #dri-devel
ngcortes has joined #dri-devel
Kayden has joined #dri-devel