ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
<hakzsam> cmarcelo: hi, yes, I can check this on monday for sure
pcercuei has quit [Quit: dodo]
clever has quit [Ping timeout: 480 seconds]
pallavim has quit [Ping timeout: 480 seconds]
clever has joined #dri-devel
columbarius has joined #dri-devel
co1umbarius has quit [Ping timeout: 480 seconds]
tuxayo has joined #dri-devel
test-874815 has joined #dri-devel
jewins has quit [Ping timeout: 480 seconds]
Company has quit [Quit: Leaving]
camus has joined #dri-devel
test-874815 has quit [Remote host closed the connection]
tuxayo-webchat has joined #dri-devel
<tuxayo> Hi :)
<tuxayo> I'm testing upcoming Vulkan support for the 0ad libre game. My GPUs are an HD 4000 (gen7 ivy bridge) and an AMD 7950 (GCN 1.0) so basically the firsts Intel and AMD GPUs with Vulkan support (but incomplete/unofficial!). Right at the frontier in the middle of the minefield, so I should get a lot of trouble :D 💥 Then the devs will see how to handle these dodgy GPUs ^^"
<tuxayo> Anyway, with my HD 4000 I got on launch that I don't have support for VK_KHR_surface, but mesa matrix doesn't mention anything about partial support (like gen8+, hsw, etc) so where can I find for sure whether the HD 4000 should support or not VK_KHR_surface?
danvet has quit [Ping timeout: 480 seconds]
tuxayo-webchat has quit [Remote host closed the connection]
<kisak> with mesa 22.3 Ivybridge vulkan support split away from ANV into hasvk. That's where to look for Vulkan on that generation going forward.
<kisak> https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/intel/vulkan_hasvk/anv_device.c#L161 seems unconditionally enabled. You sure hasvk is being used and can render to the display?
mbrost has quit [Ping timeout: 480 seconds]
<tuxayo> Thanks kisak , I was trying to find where the split put the files.
<tuxayo> > You sure hasvk is being used and can render to the display?
<tuxayo> I can run vkcube and veloren (unplayable FPS of course) so I can definitely get vk stuff on my display.
<tuxayo> I have Mesa 22.3.3 so it could only be hasvk that is used I guess? (only one GPU on the system)
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #dri-devel
mwk has quit [Ping timeout: 480 seconds]
fxkamd has joined #dri-devel
<mareko> or lavapipe
<tuxayo> I found about vulkaninfo! (I tried vkinfo but not vulkaninfo). So :
<tuxayo> Instance Extensions: count = 20
<tuxayo> [...]
<tuxayo> VK_KHR_surface : extension revision 25
<tuxayo> That might it's supported right?
nchery has quit [Ping timeout: 480 seconds]
<mareko> yes
<tuxayo> > or lavapipe
<tuxayo> oh right, maybe I have it by default somehow
* tuxayo tries to find how to which driver is used when running something
<tuxayo> *how to know
<tuxayo> That's still relevant to be sure hasvk is used, right?
<tuxayo> I'm running the AppImage build of the dev branch of the game. So it might mess up which driver/lib are used compared to directly running the game.
mwk has joined #dri-devel
<tuxayo> I found out about Vulkan Hardware Capability Viewer, ran the locally compiled version and the AppImage version and both don't list it.
<tuxayo> It might not be reliable. https://vulkan.gpuinfo.org/listextensions.php show only 0.16% of devices in the DB support it. Which seems wrong.
<tuxayo> Will keep digging, thanks for the help all :)
bluetail89482 has joined #dri-devel
bluetail8948 has quit [Ping timeout: 480 seconds]
genpaku has quit [Remote host closed the connection]
genpaku has joined #dri-devel
clever has quit [Ping timeout: 480 seconds]
digetx has quit [Ping timeout: 480 seconds]
clever has joined #dri-devel
kzd_ has joined #dri-devel
kzd has quit [Ping timeout: 480 seconds]
Daanct12 has joined #dri-devel
genpaku has quit [Read error: Connection reset by peer]
genpaku_ has joined #dri-devel
genpaku_ is now known as genpaku
YuGiOhJCJ has joined #dri-devel
<cmarcelo> hakzsam: thanks!
ppascher has joined #dri-devel
fxkamd has quit []
randy__ has quit [Remote host closed the connection]
<hays> can someone here help me out to explain exactly the relationship between libEGL.so and libwayland-egl.so? it seems that GPU vendors are on the hool to provide libwayland-egl.so (maybe?) but wayland also generates this .so as part of the compilation process
<hays> s/hool/hook
<hays> I feel like im missing a concept in terms of the graphics stack
mbrost has joined #dri-devel
tlwoerner_ has quit []
tlwoerner has joined #dri-devel
kts has joined #dri-devel
ngcortes has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #dri-devel
heat has quit [Ping timeout: 480 seconds]
camus has quit [singleton.oftc.net coherence.oftc.net]
Net147 has quit [singleton.oftc.net coherence.oftc.net]
Danct12 has quit [singleton.oftc.net coherence.oftc.net]
thaytan has quit [singleton.oftc.net coherence.oftc.net]
wens has quit [singleton.oftc.net coherence.oftc.net]
natto has quit [singleton.oftc.net coherence.oftc.net]
camus has joined #dri-devel
Danct12 has joined #dri-devel
natto has joined #dri-devel
Net147 has joined #dri-devel
wens has joined #dri-devel
thaytan has joined #dri-devel
camus has quit [singleton.oftc.net coherence.oftc.net]
Danct12 has quit [singleton.oftc.net coherence.oftc.net]
thaytan has quit [singleton.oftc.net coherence.oftc.net]
wens has quit [singleton.oftc.net coherence.oftc.net]
Net147 has quit [singleton.oftc.net coherence.oftc.net]
natto has quit [singleton.oftc.net coherence.oftc.net]
natto has joined #dri-devel
wens has joined #dri-devel
thaytan has joined #dri-devel
Danct12 has joined #dri-devel
Net147 has joined #dri-devel
camus has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Remote host closed the connection]
mbrost_ has joined #dri-devel
mbrost has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Leaving]
kts has joined #dri-devel
fab has joined #dri-devel
junaid has joined #dri-devel
Duke`` has joined #dri-devel
sghuge has quit [Remote host closed the connection]
sghuge has joined #dri-devel
Daanct12 has quit [Ping timeout: 480 seconds]
junaid has quit [Ping timeout: 480 seconds]
ds` has quit [Quit: ...]
ds` has joined #dri-devel
JohnnyonFlame has joined #dri-devel
JohnnyonFlame has quit []
rasterman has joined #dri-devel
Haaninjo has joined #dri-devel
djbw has quit [Read error: Connection reset by peer]
kzd_ has quit []
Daanct12 has joined #dri-devel
Daanct12 has quit [Quit: Leaving]
junaid has joined #dri-devel
rmckeever has quit [Quit: Leaving]
Daanct12 has joined #dri-devel
junaid has quit [Remote host closed the connection]
Daaanct12 has joined #dri-devel
Daaanct12 has quit [Read error: Connection reset by peer]
<hays> It does appear the wayland-egl is essential for proper functioning of wayland.. I thought perhaps there might be a way to run without it
Daaanct12 has joined #dri-devel
Daanct12 has quit [Ping timeout: 480 seconds]
<hays> but then this graphic, which maybe is meant as a more detailed view--shows the wayland-egl.so https://upload.wikimedia.org/wikipedia/commons/a/a7/Wayland_display_server_protocol.svg
Daaanct12 has quit [Remote host closed the connection]
X512 has joined #dri-devel
<X512> libwayland-egl.so provides an API for using EGL with Wayland. It contains installable interfaces actually implemented in EGL drivers such as Mesa.
<X512> libwayland-egl.so is one of reasons why Wayland application using EGL can't be fully implemented in Rust.
kts has quit [Quit: Leaving]
X512 has quit [Quit: Vision[]: i've been blurred!]
<dottedmag> hays: Out of curiousity, what are symbols exported by wayland-egl.so.1 from Mali?
<hays> dottedmag: I am not sure exactly how to determine that
<dottedmag> hays: readelf -sW
pcercuei has joined #dri-devel
Daanct12 has joined #dri-devel
<hays> one sec-- in over my head a bit and don't want to ask uninteresting questions if possible
<hays> dottedmag: so.. I barely understand the readelf output. but I think the answer is that Mali doesn't name wayland-egl.so for any symbol table entry
<hays> there's stuff like this -- 10: 0000000000000000 0 FUNC GLOBAL DEFAULT UND dup@GLIBC_2.17 (2)
<dottedmag> hays: pls upload the output somewhere, say, to paste.debian.net
<hays> and stuff like this 28: 0000000000000000 0 FUNC GLOBAL DEFAULT UND wl_resource_set_implementation
<hays> ok
Daanct12 has quit [Read error: No route to host]
Daanct12 has joined #dri-devel
<hays> maybe interesting is grep wl_egl?
<dottedmag> Thanks. So this is a real library with a lot of code inside, not a wrapper like Mesa's one.
<hays> this is libmali.so
<hays> so yeah it supposedly does it all
<dottedmag> Aha. And what's in their libwayland-egl.so?
<hays> there are six functions in that readelf with name wl_egl*
<hays> so my guess its is those 6 functions
<hays> wl_egl_window_{release,retain,destroy,get_attached_size,create,resize}
<hays> so the intent I believe is to symlink libwayland-egl.so to this library
<hays> and maybe that works.. im in the process of grasping at straws trying to figure out why launching sway causes seatd to hang in kernel space --possibly waiting for IO from /dev/dri/card0
<kennylevinsen> last thing you shared was sway segfaulting
<kennylevinsen> hays: seatd sits idle in a poll most of the time, so waiting in the kernel is normal
<hays> yes but not responding to kill -9 is abnormal
<hays> which happens after sway talks to it the first time
<hays> so something happens--i don't know what--when sway tries to get a resource from seatd that causes sway to segfault and seatd to go into state "D"
rick has joined #dri-devel
<kennylevinsen> that is true and suggests kernel issues, but unless sway is waiting for seatd then those might not be related
<hays> which forgive me if you know this already--is: "State "D" indicates Uninterruptible sleep generally related to IO."
Leopold has quit [Remote host closed the connection]
rick has quit [Remote host closed the connection]
<hays> sway seems to segfault immediately and only hangs the second, third, fourth time it tries to talk to seatd, which I assume is not saying anything back
<hays> first time: segfault.. after that it sits there and segfaults after a Ctrl-C
<hays> precisely what "driver" in kernel space does a proprietary driver like mali need?
<kennylevinsen> debug the first segfault. If your driver is borked, maybe seatd hangs on the drm ioctls later?
<hays> do i need to recompile seatd with debug symbols
<hays> and run it with gdb?
<kennylevinsen> To see where it hangs, sure - but I think you should debug the sway segfault first as that is a clear crash
danvet has joined #dri-devel
<hays> yeah ive tried but there is no backtrace
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
Leopold_ has joined #dri-devel
<hays> gdb --args sway, run, bt shows nothing
<kennylevinsen> then single-step to the crash. You can break at libseat_open_device and step from there.
ice9 has joined #dri-devel
mbrost_ has quit [Ping timeout: 480 seconds]
ice99 has joined #dri-devel
ice9 has quit [Read error: Connection reset by peer]
<MrCooper> nanonyme: some issues with glthread are bugs in Mesa, some are bugs in the GL API user; each case needs separate investigation
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #dri-devel
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #dri-devel
Daanct12 has quit [Remote host closed the connection]
X512 has joined #dri-devel
<X512> In theory wayland-egl.so is generic hardware-independent library.
X512 has quit [Ping timeout: 480 seconds]
X512 has joined #dri-devel
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
<daniels> yes, in older versions each EGL library provided its own implementation, but now libwayland has its own. the two are compatible so you just need to replace the Wayland one with the Mali one … or use Panfrost
ice99 has quit [Ping timeout: 480 seconds]
<X512> 2023 year now and vendor lib[E]GL.so still exists...
<X512> Use of glvnd should be enforced in distros I think.
<HdkR> If you're using the vendored Mali blob then libGL doesn't exist ;)
<X512> Mali blob don't use glvnd?
<HdkR> Well they don't support GL, so no reason to provide libGL
<HdkR> I've never actually thought about how glvnd works in that situation
<X512> glvnd have 2 parts with their own set of drivers: for GLX and for EGL.
X512 has quit [Quit: Vision[]: i've been blurred!]
X512 has joined #dri-devel
digetx has joined #dri-devel
luc4 has joined #dri-devel
X512 has quit [Ping timeout: 480 seconds]
<hays> daniels: Panfrost not available yet
<hays> they are working on it though--im stuck with rockchip-mali until that work completes
<hays> ok yeah disabling wayland EGL--as the rockchip buildroot does--doesn't work because it looks like wayland creates some header files that are needed
<hays> so my previous delete strategy seems right
<hays> still left with mystery of seatd--I'll get into gdb when I can to see what I can see
doomjoshuaboy has joined #dri-devel
<daniels> hays: ah right, gen10
<hays> this blob makefile is comically complicated
<hays> anyhoo thanks for the discussion on architecture it helped clarify some things
heat has joined #dri-devel
<daniels> np
<doomjoshuaboy> hi guys i am having a problem compiling mesa with zink on a mac os arm64 and the xcb/xcb.h, i already installed the hombrew stuff on it but still doesnt help. can anyone please tell me what to do also i am a developer of zandronum and opengl screwed zandronum up because of some opengl deprecated so i thought mesa could help with it
heat has quit [Remote host closed the connection]
Leopold_ has quit [Ping timeout: 480 seconds]
clever has quit [Ping timeout: 480 seconds]
ice9 has joined #dri-devel
Leopold_ has joined #dri-devel
clever has joined #dri-devel
<nanonyme> airlied, FWIW, we found out disabling LTO fixed dthe problem. So this https://gitlab.freedesktop.org/mesa/mesa/-/issues/7806 is probably quite wide-spread issue
<nanonyme> Seems to affect quite large amounts of AMD hardware
<nanonyme> MrCooper, glthread was red herring. We tried disabling it, it had no impact. There is a separate glthread bug, yes.
<kisak> nanonyme: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6911 is probably the issue report you want to keep an eye on
<hays> For those curious it seems like mali blob is at least supposed to work with wayland's version of wayland-egl.so: https://patchwork.ozlabs.org/project/buildroot/patch/20220924210221.1490924-1-thomas.petazzoni@bootlin.com/
<nanonyme> Okay, well, sounds like we will disable LTO for Mesa for now, it should allow doing further updates and hardware enablements
<MrCooper> yes, LTO is known unsafe for Mesa ATM
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
<nanonyme> MrCooper, there wouldn't by any chance be information if these LTO issues are all with GCC12? There are other libraries as well (dav1d) which are suffering of incorrect code generated by GCC 12 LTO (to the extent of crashes)
X512 has joined #dri-devel
<X512> MrCooper: Why? Mesa use come undefined behavior code?
<jenatali> Since at least in some cases it's caused by adding more drivers to the build, it sounds like I correct folding of different static functions with the same name
<jenatali> Incorrect*
<MrCooper> nanonyme X512: the reasons are unclear, the best lead so far is the thread starting at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20375#note_1732688
<ishitatsuyuki> which drivers are concerned with the LTO issue?
<X512> Some question about EGL: should context be selected when eglSwapBuffers is called?
<nanonyme> Yeah. But thanks for confirmation. We will proceed with release maybe next week with LTO disabled. Apparently there's quite a few RDNA 3 users already that need their hardware supported :)
<nanonyme> (that is, it was good to find out it was related to LTO, not LLVM 15 bump)
<MrCooper> X512: yes, eglSwapBuffers requires a current context (and the swapped surface to be bound to that context), in contrast to glXSwapBuffers
doomjoshuaboy has quit [Remote host closed the connection]
X512 has quit [Ping timeout: 480 seconds]
agd5f_ has joined #dri-devel
agd5f has quit [Ping timeout: 480 seconds]
agd5f has joined #dri-devel
agd5f_ has quit [Ping timeout: 480 seconds]
junaid has joined #dri-devel
bluetail89482 has quit [Read error: Connection reset by peer]
junaid has quit [Ping timeout: 480 seconds]
bluetail89482 has joined #dri-devel
<nanonyme> Does AMD RDNA 3 use radeonsi or Zink?
gouchi has joined #dri-devel
X512 has joined #dri-devel
<X512> RADV -> Zink path work for at least Radeon SI+ GPUs.
<X512> Don't know about Gallium radeonsi driver.
<kisak> mesa/radeonsi 22.2+ supports RDNA3
Jeremy_Rand_Talos has quit [Remote host closed the connection]
Jeremy_Rand_Talos has joined #dri-devel
<nanonyme> Okay, that doesn't explain then why the corruption only seemed to be happening for users of older chipsets
<kisak> if you're just now moving to llvm 15, then the RDNA3 users could have been on llvmpipe
<kisak> ^ with llvm 14.0
Mangix has quit [Ping timeout: 480 seconds]
kzd has joined #dri-devel
<nanonyme> kisak, well, they reported the didn't have properly functioning GL until LLVM 15 update. And they didn't see the corruption.
<nanonyme> Sample size is not large
<nanonyme> It of course could be mere coincidence if some codepath used by RDNA 3 in radeonsi was less broken than for older ones...
<kisak> the intent of my last comment was just to highlight that mesa 22.2+ needed to be built against llvm 15 for the RDNA3 support to get turned on.
<nanonyme> Sure. We had LLVM 14 + Mesa 22.3.2 (which worked with LTO) and then updated to LLVM 15 + Mesa 22.3.3 (which broke for everyone else but these RDNA 3 users with LTO)
<nanonyme> Separately rebuilding everything with LLVM 14 was not enough to get rid of corruption with LTO.
<nanonyme> (that is, Mesa with LTO)
Mangix has joined #dri-devel
lemonzest has quit [Quit: WeeChat 3.6]
Leopold__ has joined #dri-devel
Leopold_ has quit [Ping timeout: 480 seconds]
luc4 has quit [Ping timeout: 480 seconds]
kts has joined #dri-devel
fxkamd has joined #dri-devel
imre has quit [Quit: leaving]
kts has quit [Quit: Leaving]
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
<Ristovski> Hmm, why do amdgpu HW block IPs have multiple "segments"? What does that even mean, I can't find any docs
<X512> Do you mean instance ID? It seems not used yet.
<Ristovski> I am not sure which base to use for reading registers (via `debug/dri/0/amdgpu_regs`)
<Ristovski> The instance ID is used for certain IPs, for example `ip_discovery/die/0/CLKA/` has `0, 1, 2`
<Ristovski> but then each instance itself has multiple base addresses (in the case of CLKA, two "segments" for each instance)
junaid has joined #dri-devel
fab has quit [Quit: fab]
fab has joined #dri-devel
Jeremy_Rand_Talos_ has joined #dri-devel
Jeremy_Rand_Talos has quit [Remote host closed the connection]
jluthra has quit [Remote host closed the connection]
jluthra has joined #dri-devel
lumidify has joined #dri-devel
the_sea_peoples has joined #dri-devel
doomjoshuaboy has joined #dri-devel
doomjoshuaboy has quit [Remote host closed the connection]
JohnnyonFlame has joined #dri-devel
Leopold__ has quit [Ping timeout: 480 seconds]
Leopold_ has joined #dri-devel
fxkamd has quit []
kzd has quit [Quit: kzd]
kzd has joined #dri-devel
bluetail894825 has joined #dri-devel
bluetail894825 has quit [Read error: Connection reset by peer]
bluetail89482 has quit [Ping timeout: 480 seconds]
ice9 has quit [Ping timeout: 480 seconds]
agd5f_ has joined #dri-devel
Duke`` has quit [Ping timeout: 480 seconds]
agd5f has quit [Ping timeout: 480 seconds]
Leopold_ has quit [Ping timeout: 480 seconds]
Haaninjo has quit [Quit: Ex-Chat]
Leopold_ has joined #dri-devel
kzd has quit [Quit: kzd]
kzd has joined #dri-devel
jewins has joined #dri-devel
fab has quit [Quit: fab]
gouchi has quit [Remote host closed the connection]
Jeremy_Rand_Talos_ has quit [Remote host closed the connection]
Jeremy_Rand_Talos_ has joined #dri-devel
jernej_ has joined #dri-devel
jernej has quit [Read error: Connection reset by peer]
junaid has quit [Ping timeout: 480 seconds]
rasterman has quit [Quit: Gettin' stinky!]
luc4 has joined #dri-devel
vidal72[m] has joined #dri-devel
mbrost has joined #dri-devel
alarumbe has quit [Ping timeout: 480 seconds]
alarumbe has joined #dri-devel
mbrost has quit [Read error: Connection reset by peer]
mattst88 has quit [Quit: leaving]
mattst88 has joined #dri-devel
jewins has quit [Ping timeout: 480 seconds]