02:35jenatali: Anybody have opinions on Xbox support in Mesa?
02:41airlied: my opinions can only be bought with Xboxes
02:41HdkR: I think it would be fun to see Geforce 3 support indeed :P
02:42airlied: (in case my corporate ethics are watching along, that was a joke, only be bought with playstations)
02:42jenatali: :P
02:42HdkR: That Pentium 3 might be a bit slow these days though
02:43daniels: jenatali: what disbenefit would it bring to make us turn down the legitimacy it would confer?
02:43jenatali: I guess, to be clear, someone's using Mesa on an unmodified modern Xbox, not trying to run Linux on the original one. Mainly just wondering if anybody wants to ack/review/nak that work for any reason
02:43jenatali: daniels: Uh... in English please? :)
02:44HdkR: I like it
02:45daniels: jenatali: legitimacy from doing Xbox is good. what’s the bad part which would make us reject it?
02:45HdkR: But my opinion doesn't matter, back in the emulation hole I go
02:46jenatali: daniels: Ah got it. I dunno, just don't want to ruffle any feathers in case people do have some reasons that I couldn't think
02:46jenatali: of
02:48daniels: tbh you might be light on the ground for community review, but I’d say go for it :) it’s less niche than, say, Haiku
02:48jenatali: Yeah, I wasn't planning to wait for acks, it's pretty self-contained so I just wanted to see if there were legitimate grievances on philosophical grounds
02:48kisak: HdkR: so it'll matter to you once you're thunking mesa-in-xbox-game-in-totally-legit-emulator-on-ARM to host system mesa?
02:49HdkR: For that next generation Snapdragon Xbox
02:50daniels: HdkR: oh, so _that’s_ what really funds Proton-on-FEx!
02:50HdkR: :D
02:50daniels: jenatali: I can’t see it as being worse than DX12, or tbh, svga
02:51jenatali: Yep, fair
02:54HdkR: I'm pretty happy today that there is a commit that adds x86 code to Turnip. This mad world we live in :P
02:58jenatali: Oh geez I sparked another Phoronix article, fun
02:59daniels: jenatali: just wait for the Xbox one!
03:00jenatali: Heh, yeah, I was wondering if they'd already covered it which is why I looked
03:01jenatali: Reading the comments on the dzn one (which I really need to stop doing...) people are already theorizing it's about Xbox so that's going to be fun when that article drops :P
03:01zmike: you have to start a blog so you can lead the narrative
03:02zmike: then you can open the post with "this is not for xbox"
03:02jenatali: https://devblogs.microsoft.com/directx/, but it's hard to talk about implementing Vulkan before you're technically adopters without getting into trouble >.>
03:03zmike: use code phrases
03:04zmike: "the interface" "the abstraction layer" "the building blocks of graphics"
03:04jenatali: Brilliant
03:05zmike: or get even fuzzier
03:05zmike: "the project"
03:05zmike: "the great undertaking"
03:05zmike: "our labor"
03:06daniels: *labour
03:07zmike: daniouls
03:07daniels: zung
03:08zmike: yeah I got you good
03:14airlied: zmike: one quick fix in 20662
03:15zmike:refreshes harder
03:15zmike: I thought that one was in the original MR? 🤔
03:18airlied: zmike: so did I, I must have rebased one time too many
03:18zmike: I hate it when that happens
03:18zmike: lesson learned: never rebase, squash all patches into one
03:18airlied: zmike: also never listen to review comments :-P
03:19zmike: that goes without saying
03:19airlied:awaits the great marge babysitting
03:54zmike: 💪
03:57tarceri: What flags do I need for llvmpipe clover driver?
03:58airlied: LP_CL=1
03:58tarceri: I've got gallium-opencl=icd and gallium-drivers=swrast
04:00airlied: oh to build you need opencl-spirv
04:00airlied: -D opencl-spirv=true
04:07tarceri: installed dependencies and built but still cam't seem to get it to work
04:08tarceri: mesa.icd just contains libMesaOpenCL.so.1 is that right?
04:10marcan: airlied: re xbox, hey I added PS4 support to mesa at some point :p (IIRC it didn't take much other than adding the PCI IDs though)
04:10marcan: even AMDGPU-PRO worked with no patches
04:11marcan: the kernel side did need a bunch of patches though, mostly due to weirdo quirks of the frankenstein firmware involved
04:11marcan: I don't think any of that ever got upstreamed though...
04:13marcan: amusingly enough the vendorfw stuff we're pushing for Asahi would have been the *perfect* mechanism to use for that too, in a production setting. I hope we can turn it into some sort of standard...
04:18airlied: tarceri: yes you need libclc install and spirv-llvm-translator
04:22airlied: tarceri: make sure the icd file is /etc
04:22airlied: not in the <prefix>/etc
04:22airlied: you may need to set LD_LIBRARY_PATH
04:25tarceri: thanks setting LD_LIBRARY_PATH seems to have gotten me further along now
04:30tarceri: although that just found the amd gpu opencl devices not llvmpipe
04:31tarceri: grrr. Things were so much easier when CI didn't exist lol
05:07airlied: Lynne: got the short form intel decoder to stop hanging, not decoding anything yet, but not crashing :-P
05:18Lynne: nice!
05:19Lynne: remind me, what was the short vs long form again, and why was it needed?
05:20airlied: though I might have screwed up the packets so it might start hanging again :-P
05:20airlied: long form is slice level decode, short is frame level
05:35airlied: bleh back to hanging
05:36Lynne: is short mode used much nowadays?
05:55airlied: Lynne: so vaapi has a mode for it VA_DEC_SLICE_MODE_NORMAL and VA_DEC_SLICE_MODE_BASE
05:55airlied: I think the intel vaapi media driver exposes both modes, but the mesa vaapi code only supports the NORMAL mode
05:56airlied: NORMAL is long, and BASE is short
05:59Lynne: (I am suggesting there may be a silicon bug/rot if it's underused)
06:02airlied: yeah I do wonder myself :-P I'll keep throwing tyres on the fire and see
08:47tzimmermann: danvet, you asked to be reminded on talking to airlied about the removal of the legacy drivers: https://patchwork.freedesktop.org/series/111602/
08:49danvet: airlied, ^^ iirc you said "no" last time around or something like that
08:49airlied: burn it all!
08:50airlied: yeah maybe we are getting to the set dri1 on fire time
08:52airlied: will at least shake out if anyone cares
08:53airlied: i ex0ect the openchrome dude
08:53javierm: maybe one option is to move it to drivers/staging ?
08:54javierm: although probably not trivial since all the helpers that drivers use...
08:54javierm: s/since/due
09:01danvet: javierm, ime if you want to find anyone left using stuff, best to delete it :-)
09:02danvet: I think as long as we keep the legacy core code around for a year or so (maybe a bit more, we missed the last lts) then I think we should be fine
09:04danvet: airlied, you'll reply on list or should I?
09:09javierm: danvet: agreed on deleting to see if someone cares :)
09:12javierm: is strange that there isn't a CONFIG_DEPRECATED or something that's not CONFIG_BROKEN but something that distros could disable it
09:13javierm: danvet: maybe that's another option, make dri1 drivers depend on DRM_DEPRECATED and have that default n, that way if in a year or so nobody complains it can be deleted
09:14danvet: javierm, well we had that with DRM_LEGACY already?
09:16javierm: danvet: sorry, I missed that. And I see that fedora kernel config doesn't enable it for some time, probably most distros have disabled it too
09:17danvet: javierm, yeah so next step is deleting
09:17javierm: danvet: yeah
09:22airlied: danvet: you can! not near email
09:22danvet: ok
09:24HdkR: win 13
09:26tzimmermann: can we please have a Burn-it-all tag? :D
09:27tzimmermann: javierm, no drm drivers in staging allowed
09:27tzimmermann: just kill it
09:28tzimmermann: i'll keep the legacy core in place for a few more releases, so we can restore any drivers easily
09:28tzimmermann: there's some small legacy code in nouveau that serves an ancient userspace. hopefully that can be removed as well
09:28tzimmermann: or at least integrated into nouveau
09:29javierm: tzimmermann: makes sense
09:29tzimmermann: can i apply the patchset? please please please
09:44danvet: tzimmermann, dropped a reply with acks
09:44tzimmermann: sure
09:44danvet: i.e. go ahead with those :-)
09:45tzimmermann: i'll take care of it witihn the next workdays. i also volunteer to deal with the fallout (restoring drivers and later cleaning up the core)
09:47danvet: tzimmermann, also I'd say we should wait until the lts with this stuff has hit distros or so
09:47danvet: so more 1.5 years
09:47danvet: just because of timing
09:47tzimmermann: yes, of course
10:11hakzsam: eric_engestrom: is the branchpoint delayed btw?
10:12eric_engestrom: hakzsam: dcbaker is doing 23.0; when I talked to him yesterday he intended on making the branch, but I don't know if he got busy with other things or if something blocked making the branch
10:12hakzsam: okay, thanks and sorry for the ping :)
10:14eric_engestrom: no worries :)
10:33Kayden: [20:27] <dcbaker> curro: at this point I’m going to cut it first thing in the morning
10:34Kayden: think it got delayed today by people trying to cram in last minute bug fixes - not sure why - bug fixes are easily cherry-picked...
10:34Kayden: but yeah, should be happening tomorrow.
10:34hakzsam: sounds good
10:47danvet: mripard, btw plans to move vc4 over to dma_resv_lock as the buffer lock?
10:47danvet: helpers are ready now I thought
11:40pepp: anyone up for reviewing the small util_snprintf change from !20643?
11:50danvet: tzimmermann, javierm uh just realized that CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is default y
11:51danvet: maybe we should switch that arond to default n and depends DRM_LEGACY?
11:51tzimmermann: danvet, true
11:51danvet: instead of the current select
11:51danvet: for existing .config it should all stay the same
11:51tzimmermann: i'd first ask if nouveau devs would consider removing it entirely
11:52javierm: danvet: agreed
11:52tzimmermann: AFAIU that is ancient and userspace has moved on
11:52tzimmermann: maybe they are willing to drop it
11:52danvet: hm the userspace fix is only from 2015
11:52tzimmermann: hmm, not so ancient
11:53danvet: nah, wrong commit
11:53tzimmermann: do you have a pointer to the commit?
11:53tzimmermann: :D
11:54tzimmermann: my point here is that something similar happened when i915, radeon, et al droppped support for userspace modesetting. that reaised the minimum version for userspace
11:54tzimmermann: karolherbst ^
11:54danvet: nah we're good
11:54danvet: see c21eb21cb50d58e7cbdcb8b9e7ff68b85cfa5095
11:54danvet: libdrm 2.4.33 was release March 2012
11:55danvet: so 11 years ago
11:55danvet: we should be able to safely nuke this
11:55danvet: maybe just ditch the Kconfig for now and 3 lines in nouveau
11:55danvet: and then just garbage-collect it all together with the other legacy stuff
11:55danvet: in 1.5 years
11:56danvet: tzimmermann, ums dropping was different, because we had a transparent fallback to the vesa userspace driver
11:57danvet: and that actually worked, as in people didn't notice they fell back to that + cpu rendering
11:57danvet: (because people stuck on this old stuff just don't care about gpu features as long as they can see something)
11:57danvet: but this one is different, nouveau still loads, but then dies
11:57danvet: and you get black screen
11:58tzimmermann: 2.4.33: i was looking at that as well
11:59tzimmermann: danvet, nouveau uses only very few legacy ioctls and functions. this could be moved entirely into nouveau, i think
12:00tzimmermann: before nuking the legacy core
12:04danvet: tzimmermann, I think we should just drop it together with dri1 drivers
12:04danvet: moving this more if not needed seems a waste of time for me
12:04danvet: you're already typing a patch?
12:04tzimmermann: i'll send something
12:21karolherbst: tzimmermann: CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set in fedora, and I'm not aware of any issues
12:21karolherbst: danvet: so yeah.. we can either default it to n or drop it
12:22karolherbst: not sure why we even have it there
12:22tzimmermann: karolherbst, that sounds good
12:22karolherbst: let's see what it's even doing
12:22karolherbst: ahh.. DRIVER_KMS_LEGACY_CONTEXT
12:22tzimmermann: i'll send you a patch
12:23karolherbst: sure
12:24tzimmermann: someone would need a modern kernel with a decade-old userspace. i wonder if that would even work easily
12:30karolherbst: yeah...
12:30karolherbst: I mean.. if you want to remove DRIVER_KMS_LEGACY_CONTEXT then we can just drop that option in nouveau
12:30karolherbst: I don't even know what would need it
12:55danvet: karolherbst, see git history, enough people complained that we had to revert
12:55danvet: but that was 8+ years ago :-)
12:55karolherbst: uhhhh
12:55karolherbst: try again?
13:01danvet: karolherbst, yup
13:01danvet: also nothing functionally needed it
13:01danvet: there was just some ums code that was still run (and unfortunately errors checked)
13:02danvet: so worst case we can fake an implementation that pretends everything works while doing nothing
13:02danvet: (maybe at least, not sure tbh)
13:07tzimmermann: danvet, can driver-feature bits be removed or are they somehow exported to userspace: https://elixir.bootlin.com/linux/v6.1/source/include/drm/drm_drv.h#L52
13:08tzimmermann: asking because this one will now become unused: https://elixir.bootlin.com/linux/v6.1/source/include/drm/drm_drv.h#L148
13:08danvet: theire' entirely internal
13:08tzimmermann: ok
13:08tzimmermann: thanks
13:12mripard: danvet: I wasn't aware it was something we were moving to, so I didn't have any plans to do so
13:12mripard: but I guess I do now :)
13:37shsrfud: Hi everyone, what is (preferably vulkan related) work that I can do get started with mesa? Two ideas are VK_EXT_descriptor_buffer for Intel and reimplementing descriptor sets in terms of descriptor buffers, but I have no idea how much work either of these tasks will take. In terms of hardware, I have Intel HD 605 and an RX 470.
13:44ishitatsuyuki: Might not be a helpful advice, but lots of people starts with fixing what they found broken in a game or something else
13:45ishitatsuyuki: descriptor buffer would be nice to have, sure, but I think they will involve some nontrivial tricks on Intel and isn't exactly the best fit for beginners
13:45ishitatsuyuki: If you want to do Intel some favor, try finding bug reports about games not running or rendering incorrectly, there should be a lot of them on the issue tracker
13:49zmike: I've been told VK_EXT_dynamic_vertex_input on intel should be relatively simple
13:58dj-death: zmike: lol
13:59dj-death: I'm looking at EXT_descriptor_buffer
14:08shsrfud: Mike, thanks for the tip, I will take a look at it.
15:06gawin: do these old kernel drivers require some regular conservation? (probably main use case is testing old hardware if it is still working)
15:25rodrigovivi: @mattst88 @seanpaul_: Apparently the series for improve anti-preemption is entirely reviewed but stuck... it probably needs just a rebase and resend for CI... and the series for Allow error capture without request needs to be respinned to gets Tvrtko's feedback addressed and also someone with deep guc knowledge to confirm that there's no risk of GuC Fenix back from the dashes in the middle of the capture... I put the
15:25rodrigovivi: request to our GuC team here to get that moving and will monitor progress
15:30FLHerne: in the abstract, I'll be sad to see r128 go because that was my first ever GPU under Linux
15:31FLHerne: but I don't even have the card anymore so eh
15:39siddh: Hi, can anyone review the remaining patches of https://lore.kernel.org/lkml/cover.1673269059.git.code@siddh.me/
15:39siddh: The last 3 patches in series have already been merged. Thanks.
16:04Ristovski: Is there like a DB with apitraces anywhere?
16:05daniels: breakfast
16:05daniels: hmm, no.
16:05daniels: https://gitlab.freedesktop.org/gfx-ci/tracie/traces-db
16:06Ristovski: daniels: thanks!
16:07daniels: np!
16:08Ristovski: Oh interesting, Valve gave permission. Maybe I could contribute some TF2 traces?
16:08mattst88: rodrigovivi: I think the anti-preemption series is upstream already? (https://patchwork.freedesktop.org/series/100428/ -- 568944af44e7538ed5d1389dabf56e938afdaf4f c3bd49cd9a1043b963331e7fd874b380bed3f2bd 47daf84a8bfbc0ff7342b75fa2175591b64ef8d7 and d7a8680ec9fb217987a9569aba1abeed886805f0 in 6.2-rc1)
16:08mattst88: is there more?
16:10mattst88: https://patchwork.freedesktop.org/series/111224/ the the "Allow error capture without request", but I saw that there was a v2 at the end of November (but I couldn't find the patchwork link for it)
16:35anholt: Ristovski: yes, TF2 trace would be welcome. There are instructions in the repo for how to trim appropriately
16:38Ristovski: anholt: Are the guidelines "One trace per game"? bgfx has a trace for every demo, so I assume its mainly due to size concerns (as those are small, compared to a full game)
16:44macromorgan: dumb question (I hate to be so basic but I'm still a c newbie) but I'm trying to make an argument optional in a function. The function is `drm_of_get_dsi_bus(struct device *dev, struct mipi_dsi_device_info *info)`.
16:44macromorgan: is it as simple as seeing `if (!info)` or not to see if I either received a NULL or a valid argument?
16:45DavidHeidelberg[m]: Ristovski: use apitrace, trim trace to one frame (and one initial frame). Also test ~ 150 loops if the trace will work for performance testing
16:46DavidHeidelberg[m]: s/initial/setup/
16:50anholt: Ristovski: we have some different traces for different settings, but I can see if there are different important frames to capture, we might want more than one trace
16:51anholt: lots of traces-db is just a judgement call
17:02gawin: talking about useful traces does amd own rights for ati tech demos? there were quite many of them, but some were made by 3rd party
17:18macromorgan: how does a kms driver suspend? Are there driver specific hooks... does it destroy and create planes/crtcs? I'm trying to troubleshoot a driver (rockchip_drm_vop2.c) that doesn't suspend/resume correctly and I'm lost.
17:19macromorgan: neither the HDMI port nor the DSI port output video after resume/suspend
17:20macromorgan: I can run a test pattern to the DSI controller directly and that still works after resume
17:25daniels: macromorgan: yep, 'if (!info) { }' will trigger if info is NULL
17:25macromorgan: and if (info) will trigger if it's not, right?
17:25macromorgan: cool
17:26daniels: yep :)
19:43anholt: mupuf: could I be added for the valve runners? I'd like to be able to run jobs for ci maintenance stuff. (currently looking at filling out zink+radv testing)
19:49anholt: sergi: I'm running zink-anv-tgl-full job in one of your kernel 6.1.5 pipelines because I've been curious about if the uprev would help
19:52mupuf: anholt: you have been trusted since day 0
19:54mupuf: Wait, I thought I did, but didn't
19:54mupuf: I'll fix that tomorrow
19:54mupuf: Thanks for letting me know
19:55mupuf: this is the current list: https://gitlab.freedesktop.org/mupuf/valve-infra/-/blob/master/ansible/gateway.yml#L64
21:05alyssa: do we have any noob (i.e. me) friendly docs on how to use glvnd?
21:06alyssa: for the use case of a mesa devenv with cross builds
21:07alyssa: to replace scp'ing around gallium_dri.so and LIBGL_DRIVERS_PATH'ing it