gallium/llvmpipe: add an optimised 32-bit memset
authorDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2020 22:44:08 +0000 (08:44 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Apr 2020 20:58:23 +0000 (20:58 +0000)
commit2a2fd4c5308dee51d48630863255f1c6a04768a9
treeaebb3aca6540730466e04414c169b755dd94404b
parentc07bbdbe8268a2c80c602f71eb413f0d84920038
gallium/llvmpipe: add an optimised 32-bit memset

This might have other users beyond filling/clearing buffers,

increase a fullscreen 4k gears from 68->74 fps on my Ryzen
since gears is really just a clear benchmark, and this helps
clearing.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4394>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4394>
src/gallium/auxiliary/util/u_surface.c
src/gallium/drivers/llvmpipe/lp_rast.c
src/util/Makefile.sources
src/util/meson.build
src/util/u_memset.h [new file with mode: 0644]