[Mesa-dev] scons tnl bug, rfc on removing mesa rtasm.
jfonseca at vmware.com
Mon Jan 23 12:44:25 PST 2012
I don't think that one should introduce a dependency between Mesa and Gallium as each should be built without the other.
The right way to do this is to move rtasm to side by side w/ MEsa & gallium (e.g., src/rtasm), and have Mesa and Gallium both depend on it as needed.
Another way is to rename the symbols so that Mesa and Gallium rtasm are separate.
However, IMO, rtasm should be eliminated both from mesa and gallium, as all its uses should be replaced with LLVM.
----- Original Message -----
> So I've been digging through the assertion error I am getting under
> and have finally found the issue...
> The Mesa tnl depends on the Mesa rtasm header
> however scons never compiles mesa/x86/rtasm/x86sse.c into libmesa.
> x86/rtasm/x86sse.c is never compiled in, libmesa tnl requires
> libgallium.a to
> link into the gallium rtasm code.
> As the header in mesa/x86/rtasm/x86sse.h doesn't match the Gallium
> symbols (src/gallium/auxiliary/rtasm/rtasm_x86sse.h), we begin
> assertion errors as heap is corrupted (mostly when tnl is used)
> I am playing with fixing this by making tnl rely on gallium's rtasm
> vs the
> Mesa one. As tnl is the last thing I can find that uses the Mesa
> mesa rtasm
> could even be removed if this works.
> Does anyone know of any implementations of Mesa this may break?
> -- Alex
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
More information about the mesa-dev