#943865 src:mesa: Please build Mesa SWR rasterizer on amd64 and i386

#943865#5
Date:
2019-10-30 23:35:06 UTC
From:
To:
Dear Maintainer,

SWR is a new high performance rasterizer that is usually significantly
faster than softpipe or llvmpipe and is merged in upstream Mesa for
some time.

Adding these meson extra flags:

"-Dgallium-drivers=....,swrast,swr" "-Dswr-arches=avx,avx2,knl,skx"

should build and install these files in lib/{x86_64,i386}-linux-gnu/

libswrAVX2.so
libswrAVX2.so.0
libswrAVX2.so.0.0.0
libswrAVX.so
libswrAVX.so.0
libswrAVX.so.0.0.0
libswrKNL.so
libswrKNL.so.0
libswrKNL.so.0.0.0
libswrSKX.so
libswrSKX.so.0
libswrSKX.so.0.0.0

dri/kms_swrast_dri.so    (maybe)
dri/swrast_dri.so

It is probably worth packaging into separate package (with all arches
tho, no need to split it into 4 packages, mesa gallium loaader will
automatically determine best suitable version and load it dynamically).

Building on other archs might succeed (unlikely), but it is pointless as
SWR targets at the moment only x86 specific vector instructions so even if
it manages to be able to generate code at runtime (via LLVM) it will not be
able to run it anyway. Thus the request is only for i386 and amd64.

Adding x32 and kfreebsd-{amd64,i386} at your discretion.

Best regards,
Witold.

#943865#10
Date:
2019-11-11 09:54:40 UTC
From:
To:
I'm thinking this should replace llvmpipe on x86 if enabled, there's no
point in keeping both especially since llvmpipe would still be the default.

#943865#15
Date:
2019-11-11 10:46:21 UTC
From:
To:
On a second thought, I can't see a way to do this, as both require llvm
and 'swrast' driver enabled.

#943865#20
Date:
2019-11-16 10:17:26 UTC
From:
To:
Hi Timo.

I would keep llvmpipe even on x86. Two reasons.

1. Ability to run on SSE2 only hardware
2. SWR do have some bugs compared to llvmpipe which is working almost perfectly.

Having both is also good for testing and benchmarking both as it enables way easier switching.

I do not think SWR is in a good shape or have enogh upstream maintainers
to enable by default even on amd64.

Enabling SWR and give time people (including me) to test it more and
compare to llvmpipe is a better idea.


Cheers,
Witold


PS. Sorry if you receive it twice, my reportbug was misconfigured.

#943865#25
Date:
2023-08-14 15:03:44 UTC
From:
To:
block 943865 with 1006202
thanks

SWR was removed from mesa, but it is still available in mesa-amber