Re: MesaLib

Taylor R Campbell <[email protected]> Sun, 9 Jul 2023 20:41:55 +0000
Newsgroups gmane.os.netbsd.devel.x11
Message-ID <[email protected]>
> Date: Sun, 09 Jul 2023 21:24:55 +0100
> From: Robert Swindells <[email protected]>
> 
> I wrote:
> > I think I have got native MesaLib to build.
> >
> > Not tried it out yet and still have to go through the patches in
> > pkgsrc to see which ones need adding to xsrc.
> 
> Tried it out a bit with swrast and an old NVidia system, can try
> an old AMD card, don't have any Intel systems to try.
> 
> glxgears dumps core on old NVidia, doesn't give a useful stack trace.

What stack trace does it give?  What seems to be missing from it to
make a useful stack trace?

> What is the status of toolchain/50277? Are there any patches from
> graphics/MesaLib that would be still needed for NetBSD-current?

Should be fixed.  If not fixed, the problem would likely manifest as a
null pointer dereference in logic that tries to get the current GL
context.

> I have done a build of xsrc MesaLib.old to verify that it still works
> with my makefile changes.
> 
> Am I ok to start committing some of this or do people want to review it
> first? Would probably do the "old" makefiles first.

Can you please post changes for review first?

> One extra idea is to change everywhere to use the ${OLD_SUFFIX}
> macro in pathnames that could be "old" or not, this could reduce the
> work when doing the next upgrade.

That sounds like a good idea.