gallivm: Universal format support on lp_build_fetch_rgba_aos via util_format_descript...
[mesa.git] / src / gallium / drivers / llvmpipe / sp2lp.sh
1 #!/bin/sh
2 #
3 # Port changes from softpipe to llvmpipe. Invoke as
4 #
5 # sp2lp.sh <commit>
6 #
7 # Note that this will only affect llvmpipe -- you still need to actually
8 # cherry-pick/merge the softpipe changes themselves if they affect directories
9 # outside src/gallium/drivers/softpipe
10
11 git format-patch \
12 --keep-subject \
13 --relative=src/gallium/drivers/softpipe \
14 --src-prefix=a/src/gallium/drivers/llvmpipe/ \
15 --dst-prefix=b/src/gallium/drivers/llvmpipe/ \
16 --stdout "$1^1..$1" \
17 | sed \
18 -e 's/\<softpipe\>/llvmpipe/g' \
19 -e 's/\<sp\>/lp/g' \
20 -e 's/\<softpipe_/llvmpipe_/g' \
21 -e 's/\<sp_/lp_/g' \
22 -e 's/\<SP_/LP_/g' \
23 -e 's/\<SOFTPIPE_/LLVMPIPE_/g' \
24 -e 's/\<spt\>/lpt/g' \
25 -e 's/\<sps\>/lps/g' \
26 -e 's/\<spfs\>/lpfs/g' \
27 -e 's/\<sptex\>/lptex/g' \
28 -e 's/\<setup_\(point\|line\|tri\)\>/llvmpipe_\0/g' \
29 -e 's/\<llvmpipe_cached_tile\>/llvmpipe_cached_tex_tile/g' \
30 -e 's/_get_cached_tile_tex\>/_get_cached_tex_tile/g' \
31 -e 's/\<TILE_SIZE\>/TEX_TILE_SIZE/g' \
32 -e 's/\<tile_address\>/tex_tile_address/g' \
33 -e 's/\<tile->data\.color\>/tile->color/g' \
34 | patch -p1