06:09goutersean: Well GUD could do second display connector too or clone to any of the crtc's. But i think this patent/license jam is more related to driver signing and so called HDCP hw crypto, which is to say is creapy at best or malicous event to start with, considering project ultraviolet and such. Probably cable contains a flashable controller hw under the umbrella to protect media or content. But
06:09goutersean: judges they build precedences as to how they want. But the code or IR of entire program that lives in registers will without cloning dump the key in none verbatim form though with a lot of effort but laws there are missing to blame anyone who did such event in theory, however during my life i learned that judges interpret the things however they want during trials i.e from the POV of who
06:09goutersean: pays more.
07:00travisgordon: and your logs at cbrill... on desktop browsers malfunction, they display at raw logs, but on android browsers also at main logs. The theory was fundamentally approved juridically correct in practice taken from Shors work, although your guys did not develop this method, however shor himself seems fine person,but I did, your quasimodo old farts stalked people , placed bombs, threattened to
07:00travisgordon: knock me down, and suicidally scared away female and male customers from travelareas. I do not have to kill them off , chain of procecution could be ordered and place them closed doors, where they get anal so bad where their asshole is size of watermelon.
11:33karenw: Is there a "dummies guide to using libdrm" anywhere on the internet? (Dummy being relative, I know a lot of GL/VK stuff, but very little drm/dri stuff)
11:43Ermine: karenw: here's a talk on libdrm by emersion: https://www.youtube.com/watch?v=haes4_Xnc5Q (took that link from drm kernel docs)
11:45karenw: Ermine: Thanks. Ill take a look! Like most low level things, documentation is scattered about and half my problem is not knowing what questions to ask of google.
12:11Ermine: karenw: you may want also to read mesa code and how they utilize libdrm, for rendering side of things
12:12zmike: bbrezillon: have you had time to look at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31425
12:14javierm: karenw: https://gitlab.freedesktop.org/daniels/kms-quads was also useful to me
12:19bbrezillon: zmike: nope, sorry, I'm looking at it now
12:19zmike: thx
12:21zmike: bbrezillon: fwiw PIPE_CAP_VERTEX_ATTRIB_ELEMENT_ALIGNED_ONLY is the cap
12:24nano-: zmike: Hope you're the correct person. Is it possible to statically link a native macOS (non-X11) application with zink and moltenvk to gain access to higher OpenGL version with -framework Metal as the dynamically linked part? Where does the gl-prefixed function versions come from? Is there any sample project that utilizes this?
12:24zmike: I have no idea
12:24zmike: I know nothing about macs, sorry
12:24nano-: Ah, maybe the wrong zmike then :) Thought someone earlier pointed to a zmike :)
12:24zmike: I'm the only one
12:24zmike: but the person earlier might have assumed
12:28karenw: nano-: AFAIK you really shouldn't statically link to MoltenVK and should get it working via the vulkan loader. (I have no idea on the zink side of things though, sounds like it would work in theory, but a lot of things work in theory)
12:29nano-: Currently my entire app is statically linked with the help of vcpkg to avoid the bs with bundling stuff, so was hoping to keep it that way.
12:31nano-: With mesa now building, in addition to libzink.a I also get a libglapi.dylib with all the gl symbols without the gl prefix which sounds a bit like loader-territory. A bit in the dark in this corner.
12:32nano-: Not sure what parts I need to link to, no matter if dynamic or static :)
12:33bbrezillon: zmike:that one is set to 1, but it doesn't seem to be the one you're testing
12:33zmike: hmmm
12:33bbrezillon: you seem to test PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY now
12:33zmike: oh
12:33bbrezillon: caps->buffer_stride_unaligned =
12:34bbrezillon: !screen->get_param(screen,
12:34bbrezillon: PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY);
12:34zmike: huh.
12:34zmike: ok
12:34zmike: interesting
12:34zmike: thanks for checking
12:34bbrezillon: maybe add a caps->attrib_component_unaligned to the if () check you're dropping in the patch
12:35zmike: I'm gonna have to do more investigation
12:35zmike: maybe the patch is wrong
12:38dliviu: hello, what's the best way to handle https://lore.kernel.org/r/20240920102802.2483367-1-liviu.dudau%40arm.com? Commit 641bb4394f40 got merged in -rc1
12:38dliviu: should I push it to drm-misc-fixes?
12:50karenw: nano-: By the loader I lean libvulkan.so (or whatever the equivlent of a .so is on macos). Staticly linking libvulkan is not supported. Linking directly to drivers link MoltenVK is also not supported. But "not supported" and "doesn't work" aren't the same thing so do whatever you think best. (If you need help with the moltenvk/vulkan setup side, you could pop onto the khronos discord. Although we know little about GL and Zink)
12:51karenw: *drivers like
12:53soreau: nano-: I have no idea about your setup but maybe you can dlopen the .dylib and look up the functions minus the prefix or something
12:58travisgordon: it really does not matter what the platform like OS for any of the drivers is, because they stuffed EGL to the kernel, where all OSes collaborated to implement it. Arguably some desktop extensions would not work where as ES would , but api translation is easy, in my world, i am underwent huge depression and have not been productive enough on this code, but it is very simple.
12:58travisgordon: am/have
13:05zmike: bbrezillon: no, wait, the check for attrib_component_unaligned is above that
13:05zmike: it is checked
13:16travisgordon: the compression i developed is out of this world, it works very nicely, the idea was to keep the capacity of the hash hierarchies to yield invariant results of smaller weighted powers format. This puts the design of EGL based vulkan or openglES into prime position. Why angle so far does not translate this way around is ES glsl precision qualifiers being lower that of desktop GL, but
13:16travisgordon: there is core exension texture float , and mixed with real code of mine that way translation is desirable, so technically it's very simple to get all vulkan opengl directx games running ontop of EGL and opengl ES or vulkan. To store a compressed format variable , there is a proof system and triple error avoidance by summing 440+443=883 adding third time index 115 to measured preallocated
13:16travisgordon: power gives 26 and there is a table where linear algebra of 3 samples taken gives opportunity to eliminate one value of two previously separated, so that way millions of high precision values can be stuffed into hash and sent to display controller through a texture instruction.
13:18travisgordon: It's just the technology is legit, but i do not want to piss off game companies, EA sports or whatever companies invest millions into gaming strategies, and it's really their choice if they want to offer their games on smartphones or not, not mine.
13:22vsyrjala: pinchartl: did list_is_null() die in a bikeshed?
13:34pinchartl: vsyrjala: I think so. I still like it though
13:34pinchartl: if you'd like to resurect it, please be my guest :-)
13:34pinchartl: maybe it's been long enough and whoever disliked it will have forgotten their opinion
13:34vsyrjala: i thought i had a use for it, but after second thought maybe not. sounds like a reasonable thing to have though
13:42karenw: So, if I am a normal X/Wayland application, and I want to create a drm buffer to pass to the compositor... If I understand right this can't be done in a gpu-driver agnostic way? (well, there's dumb buffers, but that looks like SHM with extra steps)
13:42nano-: karenw: MoltenVK build system supports static linking at least. I'll mess around with some smaller test app to get more familiar. Thanks for the comments.
13:42nano-: And should dig around a bit in the khronos discord as well, ty for that, didn't know of it.
13:49Ermine: karenw: from what I understand there's some part of GEM API which is shared among drivers, but more sophisticated stuff will be GPU-specific
13:49Ermine: (And I guess that sophistication will involve rendering, which is GPU-specific anyway)
13:49emersion: karenw: normal X11/Wayland apps shouldn't use dumb buffers
13:50emersion: dumb buffers are designed for KMS
13:51Ermine: karenw: btw there's drm-memory(7) man page
13:52karenw: emersion: Yeah, like I said, wl_shm exists for that
13:52MrCooper: karenw: what's the motivation for allocating directly from DRM, instead of from Vulkan/EGL/GBM/... ?
13:52karenw: MrCooper: Purely academmic
13:52karenw: *academic
13:52MrCooper: then yeah, there's no generic DRM API for this
13:53emersion: there are driver-specific IOCTLs to allocate GPU memory
13:53emersion: it's basically what GBM/Vulkan/etc end up doing
13:54linkmauve: What does /dev/udmabuf improve over that btw?
13:54MrCooper: nothing really?
13:54linkmauve: Why did it get merged then?
13:55MrCooper: it's just a generic way to get a dma-buf backed by system memory
13:55MrCooper: it's useful for software rendering
13:55linkmauve: So exactly like dumb buffers?
13:55MrCooper: except usable for APIs which require a dma-buf fd
13:56linkmauve: Ok.
13:58emersion: dumb buffers are not necessarily system memory
14:00MrCooper: right, in fact they normally aren't if the device has local memory
14:00pq: I'd even say that dumb buffers are rarely ever system memory, and can often be slow for CPU access, especially for read access. The dumb buffer memory pool may also be more limited than others.
14:02pq: I think even for UMA systems, they may have different CPU caching that normal system memory?
14:03pq: *than
14:03MrCooper: possibly, since they're primarily intended for KMS scanout
14:09karenw: Exactly what is DRM, what is DRM-mode, what is GEM, and what is KMS all seems to blur a little the more I learn. All interlinked. :)
14:10Ermine: So, all common APIs (dumb buffers, common part of GEM) can only allocate system RAM?
14:12emersion: drm_mode is KMS
14:12emersion: KMS is Kernel Mode-Setting
14:13emersion: KMS is a part of DRM
14:13pq: karenw, https://keyj.emphy.de/files/linuxgraphics_en.pdf seems to be an old decoder ring, and probably ok even if it has lots of old things.
14:15MrCooper: Ermine: per above, dumb buffers aren't necessarily backed by system RAM
14:16karenw: Ermine: There is no common DRM_IOCTL_GEM_CREATE afaict. You have to call IOCTL_RADEON_GEM_CREATE or equivlent.
14:20zmike: bbrezillon: I think panfrost is still setting one of those caps improperly 🤔
15:50bbrezillon: zmike: could be
15:51zmike: unfortunately I don't have any ARM hardware or I'd test
16:19bbrezillon: zmike: I'll have a look tomorrow morning
16:19zmike: cool thanks
17:13karenw: So, what exactly is a DRM-Buf? Term keeps popping up. Something more general than dri?
17:14zmike: bbrezillon: 💪
17:14zmike: and yeah I hate pipe caps
17:16zmike: a good cleanup would be to go through all the drivers and delete all cases where drivers unconditionally export the defaults from u_screen
17:16zmike: then at least we could easily see which drivers actually use caps or if they can be deleted
17:19zmike: I'll make an issue and maybe people will reply...
17:19K900: Do you mean DMABUF?
17:21karenw: Yes I do, I appear to have acronym exhaustion trying to understand this stuff
17:21karenw: Too many TLAs starting with D around linux graphics.
17:22alanc: I wonder how much of https://people.freedesktop.org/~marcheu/linuxgraphicsdrivers.pdf still applies 12 years later
17:24zmike: mareko: re-ping on https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31425
17:27karenw: alanc: I can't tell you as fd.o is exploding
17:27karenw: I will file it in my "to read when fd.o stops exploding" pile.
17:29alanc: yeah, I seem to have been lucky in loading it and not getting timed out
17:40karenw: Seems accurate to what I know so far, with the bigg exclusion of not mentioning Wayland at all. (Also links have bitrotted, I don't think the author wanted to linux-fbdev.org to be gambling ads)
17:59Company: karenw: an important thing from the client side is that dmabufs are the handles that clients use to exchange references to VRAM
18:00Company: both in-process between different libraries and inter-process (the Wayland example but also VMs and browsers)
18:01Company: which has been a development in the last 1-2 years I think
18:01Company: where it is replacing GL texture ids for in-process and shm (mostly I think) for inter-process
18:27karenw: But there's no device-agnostic way to create those buffers. But from e.g. a wayland compositor's pov they are device agnostic to be scanned out to the screen/composited image?
18:27nano-: This time around I tried to replicate https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.github/workflows/macos.yml .. it unfortunately depends on a number of x11 things, but I'm just exploring. It first failed due to a bad include guard around dri_common.h in glxext.c which was easy enough to fix given the guards on function calls further down, but later on it fails in kopper_allocate_textures which
18:27nano-: calls missing loader_dri3_get_pixmap_buffer which source file is not enabled on macos. Also feels like a bad corner, I don't want x11, but I somehow want gl-prefixed functions and this configuration would produce egl according to config output which I think would do that.
18:28karenw: (At least with common formats, there could be device-specific formats or modifiers but an application can only make those with consent)
18:39Company: karenw: yes, you need some kind of device to create them - there's /dev/udmabuf these days that we recently started using in Gnome CI after llvmpipe gained support for it
18:41Company: dj-death: I am curious about the Intel GL driver, maybe you can tell me: I did an optimization to avoid flushes to speed up llvmpipe in GTK - https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7753 - and did some general benchmarking afterwards
18:42Company: dj-death: and the Intel driver was one that saw absolutely no change, even though radeonsi and asahi do see slight gains. Have you guys optimized flushes so much?
20:26dj-death: Company: not really the area I'm most familiar with
20:27Company: you know who might know?
20:27Company: in the end I'm just curious, it's not important in any way
20:27dj-death: maybe Kayden
20:28dj-death: not quite sure why uploading causes flushes tbh
20:29dj-death: as long as you don't read back you can keep everything pipelines
20:29dj-death: pipelined
20:29airlied: not sure llvmpipe handles buffer replacement that well
20:29Company: no idea, that's a question for you guys
20:30Company: but it benefited radeonsi and asahi, too
20:31Company: this is just my attempt at replacing VkPushConstants
20:32dj-death: but this is GL?
20:32Company: yeah, it's my GL emulation of push constants
20:33dj-death: ah okay
20:33dj-death: oh yeah
20:33Company: I think the original code was copied from some website where people claimed it should just work with small buffers
20:33dj-death: Kayden did a bunch of work for suballocations
20:33dj-death: maybe that helps
20:33Company: so I was wondering if Intel maybe optimized that
20:34dj-death: we suballocates 2MB buffers in Iris I think
20:34dj-death: but that was for a different reason
20:35Company: but I have no idea how many engines use push constants and want a GL equivalent
20:35Company: because the few Vulkan people I've talked to in recent times all went "omg, don't use push constants, nobody optimizes them"
20:36dj-death: huh
20:36dj-death: you spoke to AMD people?
20:36Company: hehe, no
20:36Company: Android and GStreamer people
20:36dj-death: Intel has special bits of HW for push constants
20:37dj-death: it's only on DG2+ where compute/mesh/ray-tracing doesn't have it
20:37dj-death: but the other stages still do
20:38airlied: nobody optimises them because they are already fast :-P
20:38Company: I might be looking into doing that buffer thing for Vulkan, too - maybe that speeds things up on some drivers
20:39Company: airlied: in that case, maybe gallium should use them for small buffers?
20:39airlied: the problem isn't the small buffers, it's the overwriting of the contents of the small buffers
20:39airlied: while those contents are in use
20:40airlied: I think we often try to pipeline those operations, but I'm guessing we don't always
20:40airlied: the hw that is used for push constants is used by GL drivers for UBOs usuall
20:41Company: that is a UBO
20:43Lynne: is there still no way to trigger an rgp trace for compute-only programs?
20:44ccr: somehow I read that as "RGB trace" and wondered what that could be
20:51Company: airlied: I just figured out why the asahi numbers are so bad in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7753
20:52Company: airlied: apparently llvmpipe doesn't spawn enough threads to make the M2 Ultra go into performance mode
20:52Company: airlied: with LP_NUM_THREADS=32 on the 8 + 16 core machine, llvmpipe does 120fps instead of 80fps
20:53Company: is that an llvmpipe problem or a kernel power management issue?
21:01jannau: does the benchmark application take a significant amount of time for submission? i.e. is the CPU utilization of the llvmpipe threads significantly less than 100%
21:07airlied: Company: likely a bit of both
21:12Company: jannau: it's slightly above 50% apparently
22:04Kayden: Company: hmm. that is a bit surprising
22:05Kayden: asahi doesn't seem to have u_threaded_context unless I'm missing something
22:05Kayden: iris and radeonsi both use that, and u_threaded_context has some promotion of things to async maps
22:05Kayden: and automatic replacement of the backing storage when you overwrite the entire buffer
22:06Kayden: iris should do that with GALLIUM_THREAD=0 too, since I'd implemented it first
22:07Kayden: radeonsi has fancier buffer handling than iris - it has callbacks for detecting idle buffers and reusing objects. https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18880 implemented that for iris 2 years ago but nobody ever reviewed it
22:07Kayden: not sure I ever saw any improvements from it either
22:08Kayden: radeonsi also has CPU-side storage for buffers in some cases, which...I remember alyssa and I looking at a few corner cases of, and being uncomfortable with the idea, so we never did it
22:08Kayden: so I guess I could see the results being different between the three drivers, at any rate
22:09Kayden: but yeah if you were overwriting an entire buffer object, we've long allocated new storage to avoid stalls there
22:09Kayden: or even a range you had never written anything to (so the existing contents cannot matter)
22:10Kayden: (in that case we'd promote to async mappings)
22:10Company: makes sense
22:11Company: any idea what the best emulation for vk push constants is with GL?
22:11Company: in a general GL sense I mean, not specific to any drivers (or even Mesa)
22:11dj-death: ubos should be promoted to push constants
22:13Company: yet apparently only Intel gets that right
22:14Company: (or I suck at measuring, which is also a possible option, because my benchmarks are nowhere near perfect and I'm basically just looking at GALLIUM_HUD)
22:22Kayden: hmm, yeah, Intel promotes UBOs to push constants
22:22Kayden: but maybe others don't
22:23Kayden: I know i965 did better for regular glUniforms because it had to upload them
22:23Kayden: so it could just decide to go push
22:23Kayden: whereas UBOs are already uploaded
22:23Kayden: but I don't think I'd recommend using those, they're kinda legacy and terrible
22:24Kayden: not sure what other drivers do for push constants. we have a dedicated thing that pre-loads registers with data on thread spawn
22:43karolherbst: at least on nvidia none of this matters, because there are only ubos
23:35Company: karolherbst: does that mean on Vulkan I might want to use that one-buffer-for-all-globals thing, too and avoid push constants?
23:42karenw: Disclaimer: I am a hobby vulkan dev and not a dri dev. My understanding is on nvidia you have UBOs which are faster than read-only SBOs, and push constants are just implemented as UBOs. On other hardware you do have push constants (small but extremely fast) but UBOs have no perf advantage over readonly SBOs.
23:47Company: I think I'll just try it when I get around to it, just to see what happens
23:53karenw: As I often end conversations on the Khronos Vulkan Discord. "tl;dr: It Depends; Profile It"