ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
co1umbarius has joined #dri-devel
columbarius has quit [Ping timeout: 480 seconds]
darkapex2 has left #dri-devel [#dri-devel]
darkapex has joined #dri-devel
Lyude has quit [Quit: WeeChat 3.2]
Lyude has joined #dri-devel
Guest937 is now known as alatiera
lyudess has joined #dri-devel
Lyude has quit [Ping timeout: 480 seconds]
<graphitemaster> I think what is more impressive is that offsetof is required to yield a constant expression so like `enum { V = offsetof(struct foo, bar) }` needs to compile, it makes you think that for the historical implementation of offsetof to work, the compiler's constant evaluator now needs to model concepts of pointers, storage, address, casting, and dereferencing of a null pointer just to compute the offset here, and guess what, GCC
<graphitemaster> actually DOES but yeah, __builtin_offsetof seems more appropriate to me here anyways.
sukbeom has joined #dri-devel
Surkow|laptop has quit [Remote host closed the connection]
Surkow|laptop has joined #dri-devel
Lyude has joined #dri-devel
lyudess has quit [Ping timeout: 480 seconds]
sukbeom has quit [Ping timeout: 480 seconds]
shashank1202 has quit [Quit: Connection closed for inactivity]
camus has joined #dri-devel
lemonzest has joined #dri-devel
Company has quit [Ping timeout: 480 seconds]
Company has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
macromorgan is now known as Guest1001
Guest1001 has quit [Read error: Connection reset by peer]
macromorgan has joined #dri-devel
ppascher has quit [Ping timeout: 480 seconds]
mranosta1 has joined #dri-devel
mranostaj has quit [Ping timeout: 480 seconds]
shashanks has joined #dri-devel
flacks has quit [Quit: Quitter]
flacks has joined #dri-devel
camus has joined #dri-devel
shashanks has quit [Remote host closed the connection]
shashanks has joined #dri-devel
flacks has quit []
camus1 has quit [Ping timeout: 480 seconds]
flacks has joined #dri-devel
Ahuj has quit [Remote host closed the connection]
Duke`` has joined #dri-devel
sukbeom has joined #dri-devel
shashank1202 has joined #dri-devel
camus1 has joined #dri-devel
mlankhorst has joined #dri-devel
camus has quit [Remote host closed the connection]
sukbeom has quit [Remote host closed the connection]
sukbeom has joined #dri-devel
perr has joined #dri-devel
perr has quit [Remote host closed the connection]
Company has quit [Quit: Leaving]
rasterman has joined #dri-devel
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
Ahuj has joined #dri-devel
danvet has joined #dri-devel
hikiko_bsd has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
perr has joined #dri-devel
JohnnyonFlame has quit [Remote host closed the connection]
gouchi has joined #dri-devel
i-garrison has quit [Ping timeout: 480 seconds]
i-garrison has joined #dri-devel
camus1 has quit [Remote host closed the connection]
camus has joined #dri-devel
rbrune has joined #dri-devel
pcercuei has joined #dri-devel
evadot has quit [Remote host closed the connection]
perr has quit [Ping timeout: 480 seconds]
evadot has joined #dri-devel
evadot has quit []
evadot has joined #dri-devel
thellstrom has joined #dri-devel
rbrune has quit [Ping timeout: 480 seconds]
thellstrom1 has quit [Ping timeout: 480 seconds]
mesa_question has joined #dri-devel
mesa_question has quit []
blue_pill has joined #dri-devel
rasterman has quit [Quit: Gettin' stinky!]
kem has quit [Ping timeout: 480 seconds]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
kem has joined #dri-devel
JeSCaLis23-F has joined #dri-devel
<blue_pill> Hello
<blue_pill> I'm trying to build mesa
<blue_pill> I can't make changes to the system so I'm going via the "install local libraries" route when something is not there or supported
<blue_pill> I downloaded llvm and built it to a dir "(my_dir_ommited)/llvm-project"
<blue_pill> I tried to make it work during meson build for mesa and these are the steps I tried to do to get llvm working:
<blue_pill> setenv PKG_CONFIG_PATH my_dir_ommited/llvm-project/build/bin/llvm-config:$PKG_CONFIG_PATH From build path I also edited this ./meson-private/cmake_LLVM/CMakeLists.txt : set (search_paths ${PATH_TO_LLVM} ${PATH_TO_LLVM}/lib/cmake ${PATH_TO_LLVM}/lib/cmake/llvm ${PATH_TO_LLVM}/lib/cmake/clang ${PATH_TO_LLVM}/share/clang/cmake/ ${PATH_TO_LLVM}/share/llvm/cmake/ ) With "PATH_TO_LLVM" set to (my_dir_ommited)/llvm-project/build/bin/llvm-conf
<blue_pill> (oops new lines don;t work in IIRC)
<blue_pill> One issue that looks to have solved one part of the llvm steps:
<blue_pill> setenv PKG_CONFIG_PATH my_dir_ommited/llvm-project/build/bin/llvm-config:$PKG_CONFIG_PATH
<blue_pill> From build path I also edited ./meson-private/cmake_LLVM/CMakeLists.txt :
<blue_pill> set (search_paths ${PATH_TO_LLVM} ${PATH_TO_LLVM}/lib/cmake ${PATH_TO_LLVM}/lib/cmake/llvm ${PATH_TO_LLVM}/lib/cmake/clang ${PATH_TO_LLVM}/share/clang/cmake/ ${PATH_TO_LLVM}/share/llvm/cmake/ )
<blue_pill> Then the error I get during mesa build with meson:
<blue_pill> With "PATH_TO_LLVM" set to (my_dir_ommited)/llvm-project/build/bin/llvm-config:$PKG_CONFIG_PATH
<blue_pill> WARNING: Ignoring LLVM CMake dependency because dynamic was requested
<blue_pill> llvm-config found: YES (my_dir_ommited/llvm-project/build/bin/llvm-config) 14.0.0
<blue_pill> Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool)
<blue_pill> Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, native, bitreader, ipo, asmparser, native)
<blue_pill> ../meson.build:1647:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found.
<blue_pill> That's how far I've reached, I don't know what else to do I even tried setting the $PATH, any help would be appreciated, sorry fo r the many messages
kts has joined #dri-devel
shashank1202 has quit [Quit: Connection closed for inactivity]
Guest594 is now known as gruetzkopf
camus has joined #dri-devel
kts has quit []
camus1 has quit [Read error: Connection reset by peer]
JeSCaLis23-F has quit []
gouchi has quit [Remote host closed the connection]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
boofi has joined #dri-devel
<boofi> How would I compile mesa with patches?
<boofi> I'm particularly interested in radv
<HdkR> You can get the raw diff from that page. https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12974.diff
<HdkR> Then just apply that to your local version, build, etc
<boofi> How would i apply it?
<boofi> I've never done this in my life
<boofi> I want to compile the version with the radv patches
<boofi> Install it
<boofi> so i can try quake2rtx
<boofi> nevermind
<boofi> took me 10 seconds to google how to do it
<DPA> Would it make sense to add UDL to kmsro? https://bpa.st/NBXQ
<boofi> I've tried git apply and the file but it doesnt look like it works
<HdkR> `patch -p1 < 12974.diff` might work
<bnieuwenhuizen> you can also get https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12974.patch and then apply with git am file.patch
<FLHerne> Hasn't the radv raytracing stuff been merged into master already?
<FLHerne> so you don't really want to apply any separate patches, just check out main
<boofi> I don't think so.
<boofi> It's still open.
Luc has quit [Remote host closed the connection]
<boofi> And i'm missing a lot of files
<boofi> I've probably figured it out.
<HdkR> FLHerne: The RDNA2 bits have been merged. The emulated RT bits haven't
<boofi> I'm currently cloning the direct repository via. https://gitlab.freedesktop.org/JoshuaAshton/mesa/-/tree/radv-vega-rt-pullrequest
<boofi> I'll try to patch that one and then build it
<boofi> Probably won't even have to patch it.
<boofi> It's now erroring out
<boofi> [66/2234] Compiling C object src/util/format/libmesa_format.a.p/meson-generated_.._u_format_table.c.o
<boofi> ninja: build stopped: subcommand failed.
Company has joined #dri-devel
mlankhorst has quit [Ping timeout: 480 seconds]
agx has quit [Remote host closed the connection]
agx has joined #dri-devel
gouchi has joined #dri-devel
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
Ahuj has quit [Ping timeout: 480 seconds]
boofi has quit [Quit: Konversation terminated!]
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
mlankhorst has joined #dri-devel
orbea1 has joined #dri-devel
orbea1 has quit []
orbea1 has joined #dri-devel
orbea1 has quit []
orbea has quit [Ping timeout: 480 seconds]
orbea has joined #dri-devel
rasterman has joined #dri-devel
X-Scale` has joined #dri-devel
camus has quit [Remote host closed the connection]
X-Scale has quit [Ping timeout: 480 seconds]
camus has joined #dri-devel
mattrope has joined #dri-devel
<blue_pill> Can someone help me with issue on building mesa?
<blue_pill> I compiled LLVM locally but no matter what i;ve tried it is not working
<ishitatsuyuki> paste your error message at least
<blue_pill> So the first error was that it was not seeing llvm-config
<ishitatsuyuki> also iirc you could build Mesa fine without building llvm by yourself
<blue_pill> i did:
<blue_pill> setenv PKG_CONFIG_PATH my_dir_ommited/llvm-project/build/bin/llvm-config:$PKG_CONFIG_PATH
<dcbaker> Llvm doesn't have pkg-config
<blue_pill> yes, meson script was looking for llvm-config
<dcbaker> Either put the location of llvm-config in PATH, or specific it in a meson machine file
<blue_pill> which brings us to the next thing
<blue_pill> From build path I also edited ./meson-private/cmake_LLVM/CMakeLists.txt:
<blue_pill> set (search_paths ${PATH_TO_LLVM} ${PATH_TO_LLVM}/lib/cmake ${PATH_TO_LLVM}/lib/cmake/llvm ${PATH_TO_LLVM}/lib/cmake/clang ${PATH_TO_LLVM}/share/clang/cmake/ ${PATH_TO_LLVM}/share/llvm/cmake/ )
<blue_pill> ( With "PATH_TO_LLVM" set to (my_dir_ommited)/llvm-project/build/bin/llvm-config:$PKG_CONFIG_PATH )
<ishitatsuyuki> uh don't edit "private" files
<ishitatsuyuki> running "meson configure" outputs a list of build options you can set
<dcbaker> PKG_CONFIG_PATH is just for pkg-config. If you want to use cmake detection from meson you need to set the CMAKE_PREFIX_PATH variable instead
<blue_pill> CMAKE_PREFIX_PATH : should i point to the top of the build directory of llvm or the bin folder?
<ishitatsuyuki> blue_pill: actually, it's in the docs https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/docs/meson.rst#llvm
<ishitatsuyuki> Do not mess with cmake.
<dcbaker> It's an environment variable like PKG_CONFIG_PATH. you can also set it with meson configure -Dcmake_prefix_path=...
<blue_pill> I'm conflicted, may i paste the error here? it will be some lines
<dcbaker> Yes
<ishitatsuyuki> Reset your mesa build directory. Configure with the instructions in the docs I mentioned
<ishitatsuyuki> Again, do not mess with cmake
<blue_pill> WARNING: Ignoring LLVM CMake dependency because dynamic was requested
<blue_pill> llvm-config found: YES (my_dir_ommited/llvm-project/build/bin/llvm-config) 14.0.0
<blue_pill> Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines) found: NO (tried cmake and config-tool)
<blue_pill> Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, native, bitreader, ipo, asmparser, native)
<blue_pill> ../meson.build:1647:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found.
<blue_pill> that's the error
<ishitatsuyuki> not sure but sounds like you might be missing a LLVM backend
<blue_pill> i downloaded LLVM src code and compiled everything, when you say backend is it like athird party library specific to mesa ?
<ishitatsuyuki> did you configure it to include amdgpu support?
<blue_pill> mesa or llvm
<ishitatsuyuki> llvm
<ishitatsuyuki> also what mesa driver are you building?
<blue_pill> no, is that an option
<blue_pill> i'm trying to build OpenGL llvpipe
<blue_pill> llvmpipe*
<ishitatsuyuki> please paste your `llvm-config --components` (invoked with proper build directory prefix)
<dcbaker> What options are you building mesa with?
<blue_pill> aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf
<blue_pill> it gets vut
<blue_pill> cut by irc
<blue_pill> I can see among them : amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils
<ishitatsuyuki> looks like the component support might be fine
<ishitatsuyuki> try uploading your builddir/meson-logs/meson-log.txt to a paste service
<ishitatsuyuki> Please do NOT use pastebin.com or paste.ubuntu.com -- some good, sane paste services are http://ix.io, https://paste.rs, https://bpaste.net and https://gist.github.com --- shameless copypaste from archlinux bot
gawin has joined #dri-devel
* ishitatsuyuki goes to sleep, might be able to help tomorrow
cphealy has quit [Remote host closed the connection]
<blue_pill> it is full of paths with my name and other sensitive information :( I will look at the above comments in case I missed some step :(
cphealy has joined #dri-devel
macromorgan is now known as Guest1035
macromorgan has joined #dri-devel
<blue_pill> there must be a very specific configuration option to just point to llvm library , it can't be impossible
Guest1035 has quit [Read error: Connection reset by peer]
iive has joined #dri-devel
<blue_pill> weird
<blue_pill> WARNING: Unknown options: "cmake_module_path"
<dcbaker> That should be cmake_prefix_path
<blue_pill> hmmmmm it kinda.... worked with new error
<blue_pill> WARNING: CMake: Dependency rt for LLVM target LLVMSupport was not found
<blue_pill> WARNING: CMake: Dependency dl for LLVM target LLVMSupport was not found
<blue_pill> WARNING: CMake: Dependency m for LLVM target LLVMSupport was not found
<blue_pill> WARNING: Ignoring LLVM CMake dependency because dynamic was requested
<blue_pill> can i change to static? i always see this "because dynamic was requested" but i didn't request anything :P
<jenatali> Those warnings will go away if you remove the paths you added for Meson to find LLVM via CMake
<jenatali> You want it to find the config tool, either by path or by using a native file
<jenatali> Or I guess you could set -Dshared-llvm=disabled to force it to link statically
flacks has quit [Quit: Quitter]
<blue_pill> do i need "RT, "DL" and "m" dependencied for LLVM? setting it to static seems to make the error ignored and move on
<dcbaker> Those are all part of glibc
<blue_pill> that sounds serious
<blue_pill> (this is my first "custom" build, apologies)
sukbeom has quit [Ping timeout: 480 seconds]
macromorgan is now known as Guest1037
Guest1037 has quit [Read error: Connection reset by peer]
macromorgan has joined #dri-devel
<blue_pill> why is mesa asking for so many dependencies :(
<blue_pill> besides llvm "m", "RT" , "DL" it is asking for wayland-scanner... on an rhe7 machine o.o
dliviu has quit [Ping timeout: 480 seconds]
dliviu has joined #dri-devel
hch12907 has quit [Ping timeout: 480 seconds]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
Ahuj has joined #dri-devel
flacks has joined #dri-devel
JohnnyonFlame has joined #dri-devel
tobiasjakobi has joined #dri-devel
camus1 has quit [Remote host closed the connection]
camus has joined #dri-devel
<Venemo> blue_pill: some of those dependencies are optional in mesa
<blue_pill> Venemo: is there a way to say to meson that I only need llvmpipe (i'm targeting opengl3) so it restricts teh erquiremetns?
<blue_pill> requirements*
<Venemo> yes
<Venemo> just select llvmpipe
<blue_pill> like -Dtarget=llvmpipe ?
<Venemo> meson -Ddri-drivers= -Dgallium-drivers= -Dvulkan-drivers= <-- fill in the drivers you need
tobiasjakobi has quit [Remote host closed the connection]
tobiasjakobi has joined #dri-devel
tobiasjakobi has quit [Remote host closed the connection]
gawin has quit [Ping timeout: 480 seconds]
kem has quit [Ping timeout: 480 seconds]
kem has joined #dri-devel
rbrune has joined #dri-devel
gawin has joined #dri-devel
NiksDev has joined #dri-devel
<airlied> HdkR: pretty aurw that offsetof macro on clang was ub
<airlied> if passed NULL
<HdkR> Wha? What'd I do?
<airlied> oops was DrNick
* airlied needs glasses for phone irc :-)
<HdkR> Does offsetof even work for variables, I thought the first argument was a type?
<HdkR> So you'd have to do a decltype potentially with pointer peeling?
hikiko_bsd has quit [Ping timeout: 480 seconds]
danvet has quit [Ping timeout: 480 seconds]
gawin has quit [Ping timeout: 480 seconds]
gawin has joined #dri-devel
gawin has quit [Ping timeout: 480 seconds]
X-Scale has joined #dri-devel
X-Scale` has quit [Ping timeout: 480 seconds]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
lyudess has joined #dri-devel
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
Lyude has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]
camus1 has joined #dri-devel
lemonzest has quit [Quit: WeeChat 3.2]
camus has quit [Ping timeout: 480 seconds]
Ahuj has quit [Ping timeout: 480 seconds]
gawin has joined #dri-devel
<mareko> airlied: that's a different issue from the one ubsan is reporting: it's reporting that applying a _zero_ offset to NULL is undefined, while the link talks about non-zero
<mareko> what ubsan doesn't recognize is that &p->Base is equal to (void*)p, and I think it treats it as a non-zero offset
flacks has quit [Read error: Connection reset by peer]
flacks has joined #dri-devel
Lyude has joined #dri-devel
lyudess has quit [Ping timeout: 480 seconds]
Duke`` has quit [Ping timeout: 480 seconds]
rbrune has quit [Ping timeout: 480 seconds]
pcercuei has quit [Quit: dodo]
danvet has joined #dri-devel
<gawin> mareko: I have something more interesting in translate_vertex_program of r3xx_vertprog.c break opcode isn't implemented, it causes many compilation errors in piglit's tests
<gawin> (though not sure how to implement it yet)
tlwoerner has quit [Quit: Leaving]
tlwoerner has joined #dri-devel
shashank1202 has joined #dri-devel
camus has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
camus has quit [Remote host closed the connection]
X-Scale` has joined #dri-devel
camus has joined #dri-devel
X-Scale has quit [Ping timeout: 480 seconds]
fly has joined #dri-devel
kts has joined #dri-devel
sukbeom has joined #dri-devel
danvet has quit [Ping timeout: 480 seconds]
ppascher has joined #dri-devel
mlankhorst has quit [Ping timeout: 480 seconds]
fly has quit [Ping timeout: 480 seconds]
oneforall2 has quit [Quit: Leaving]
gawin has quit [Quit: Konversation terminated!]
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
iive has quit []
blue_pill has quit [Remote host closed the connection]
camus1 has quit [Remote host closed the connection]
camus has joined #dri-devel