sylware / nyanlinux (public) (License: AFFERO GPLv3) (since 2019-09-09) (hash sha1)
scripts for a lean, from scratch, amd hardware, linux distro
List of commits:
Subject Hash Author Date (UTC)
gfx stack update 1745824d280d1a172f69f6e7141a34d83798c4ab Sylvain BERTRAND 2019-12-02 03:33:06
gfx stack update 53b14f9e2383f3c5b24ff5ba47a97295ad778389 Sylvain BERTRAND 2019-11-24 20:50:01
enable mplayer av1 decoding with ffmpeg c77b02db60e924fe8473827903712d6456d0e04b Sylvain BERTRAND 2019-11-19 23:31:12
remove old vulkan loader f6c3134c6c5603ef3c8ca628b0aae6cfe2aa806c Sylvain BERTRAND 2019-11-19 20:24:12
added ffmpeg av1 decoding using dav1d 656ff5ec5cd4f66ad3d26e81ca9fc62a4a24f056 Sylvain BERTRAND 2019-11-19 20:15:06
gfx stack update f504d662bcef4ea5ee49de01a312b2b6eead3a72 Sylvain BERTRAND 2019-11-18 15:56:11
significant gfx stack update 81b1641e4a68d13bdb3207958c1b61f5c9178110 Sylvain BERTRAND 2019-11-12 17:19:01
st with alpha 40c4dd0ba37efa471f371b5ebb2c700791cf2e41 Sylvain BERTRAND 2019-10-29 04:12:09
gfx stack update 2e34313ea063d321682a21a4d1b18b33fd1c08b2 Sylvain BERTRAND 2019-10-28 19:42:48
add a direct into steam startup 2f9f5cdf6cc52bd91252d3320e84a75b51e9ba29 Sylvain BERTRAND 2019-10-27 18:38:37
gfx stack update 7f8dbe3e5666565b1d7dbd593894440dce671843 Sylvain BERTRAND 2019-10-24 23:08:53
alsa 1.1.9 1962471fe6f6cbf49db17de01d37a0eb312c351a Sylvain BERTRAND 2019-10-16 19:48:29
gfx stack update (xserver broken) 24366ffbb58e6ab17e36fd7857d1740ea00e5c3f Sylvain BERTRAND 2019-10-14 22:57:04
gfx stack update 83dc9bfacd6249162046aadbc77c968955fa5036 Sylvain BERTRAND 2019-10-07 20:54:30
add x11 compositing 9308f9158cac1fef16bb64b105e7c9583a55b2b8 Sylvain BERTRAND 2019-10-02 20:48:29
gfx stack update 0fc55d155b358c036a3032d045c78e6f3adab111 Sylvain BERTRAND 2019-09-30 20:46:52
gfx stack update c8c3e4d0abe14e601250bccc72d0cd3423f16805 Sylvain BERTRAND 2019-09-25 21:05:20
gfx stack update 4e84d92d1f9f30dd4c42347e1d92829f4563e1ab Sylvain BERTRAND 2019-09-16 16:54:42
fix openssh nasty bug due to linking to static libressl bddd58feb4ffd205f08430069840f0878775ec75 Sylvain BERTRAND 2019-09-13 23:28:10
update links and enable freetype/fontconfig b51e63a4d6ef5e78789d7246a5f1481ac62b68a0 Sylvain BERTRAND 2019-09-11 02:32:00
Commit 1745824d280d1a172f69f6e7141a34d83798c4ab - gfx stack update
Author: Sylvain BERTRAND
Author date (UTC): 2019-12-02 03:33
Committer name: Sylvain BERTRAND
Committer date (UTC): 2019-12-02 03:33
Parent(s): 53b14f9e2383f3c5b24ff5ba47a97295ad778389
Signing key:
Tree: d70d13a015d2e00646e8f9e03731d84741f33387
File Lines added Lines deleted
builders/dav1d-0/builder.sh 1 1
builders/drm-0/builder.sh 1 1
builders/ffmpeg-0/builder.sh 1 1
builders/libepoxy-1/builder.sh 9 6
builders/libepoxy-1/contrib/epoxy.pc.in 16 0
builders/libepoxy-1/contrib/make.gnulinux 111 222
builders/llvm-1/builder.sh 1 1
builders/mesa-gl-1/builder.sh 10 3
builders/mesa-gl-1/contrib/amd.sh 1 0
builders/mesa-gl-1/contrib/compiler_glsl.sh 1 0
builders/mesa-gl-1/contrib/compiler_nir.sh 2 1
builders/mesa-gl-1/contrib/gallium_auxiliary.sh 6 0
builders/mesa-gl-1/local_conf.sh 0 7
builders/mesa-vulkan-1/builder.sh 1 1
builders/mesa-vulkan-1/contrib/generators/nir/intrinsics/generic/load.c 14 0
builders/mesa-vulkan-1/contrib/generators/nir/nir_database_alu.c 687 82
builders/mesa-vulkan-1/contrib/generators/nir/nir_opcodes_c.c 4 2
builders/mesa-vulkan-1/contrib/x86_64_amdgpu_linux_gnu_vulkan_x11_drm_gcc.sh 12 6
builders/mplayer-1/builder.sh 2 2
builders/xserver-1/builder.sh 1 1
File builders/dav1d-0/builder.sh changed (mode: 100644) (index eeb4c1c..fd0ad56)
1 1 src_name=dav1d src_name=dav1d
2 git_commit=9a100261b911d1bc96a36a3ec9bcbf6ee29dd228
2 git_commit=162ba33db1dafc37f142836fd58a2867012072b0
3 3 git_url0=https://code.videolan.org/videolan/$src_name.git git_url0=https://code.videolan.org/videolan/$src_name.git
4 4
5 5 slot=0 slot=0
File builders/drm-0/builder.sh changed (mode: 100644) (index 6189747..ce12631)
1 1 src_name=drm src_name=drm
2 git_commita39c34e64ad83e134fe276ead1bad8bffb4d454e=
2 git_commit=cd77f114ca0073f609fc89d22390152945e73107
3 3 git_url0=git://anongit.freedesktop.org/mesa/$src_name git_url0=git://anongit.freedesktop.org/mesa/$src_name
4 4
5 5 slot=0 slot=0
File builders/ffmpeg-0/builder.sh changed (mode: 100644) (index 7343ebe..b56b84c)
1 1 src_name=ffmpeg src_name=ffmpeg
2 git_commit=f897d8c863c54acbe15f3149ca0d6b774fab2cf5
2 git_commit=637742b45dc8df329b8593f6ad8f4e154d609415
3 3 git_url0=https://git.ffmpeg.org/$src_name.git git_url0=https://git.ffmpeg.org/$src_name.git
4 4
5 5 pkg_dir=$pkgs_dir_root/$pkg_name pkg_dir=$pkgs_dir_root/$pkg_name
File builders/libepoxy-1/builder.sh changed (mode: 100644) (index 3526ede..0b97701)
1 1 src_name=libepoxy src_name=libepoxy
2 git_commit=8573dbcee30506f7ad1831247789deaf53a56a10
2 git_commit=5d818164dd2ab87b0054641f1446bc552a602320
3 3 git_url0=git://github.com/anholt/$src_name git_url0=git://github.com/anholt/$src_name
4 4
5 5 slot=1 slot=1
 
... ... export "PKG_CONFIG_LIBDIR=\
36 36 /nyan/libxcb/current/lib/pkgconfig:\ /nyan/libxcb/current/lib/pkgconfig:\
37 37 /nyan/xorgproto/current/share/pkgconfig" /nyan/xorgproto/current/share/pkgconfig"
38 38
39 $pkg_dir/contrib/make.gnulinux \
40 --prefix=/nyan/libepoxy/$slot \
41 --python3=$sdk_python3_path/bin/python3 \
42 "--dslibepoxy-cc=gcc -static-libgcc -O2 -pipe -fPIC -fvisibility=hidden -c" \
43 "--dslibepoxy-ccld=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc -shared -Wl,-soname,libepoxy.so.0 -Bsymbolic -Wl,--no-undefined"
39 cat >$build_dir/local_conf.sh <<EOF
40 prefix=/nyan/libepoxy/$slot
41 python3=/nyan/python3/current/bin/python3
42 dslibepoxy_cc='gcc -static-libgcc -O2 -pipe -fPIC -fvisibility=hidden -c'
43 dslibepoxy_ccld='gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc -shared -Wl,-soname,\$soname -Bsymbolic -Wl,--no-undefined'
44 EOF
45
46 $pkg_dir/contrib/make.gnulinux
44 47
45 48 cp -f -r ./fake_root/* / cp -f -r ./fake_root/* /
46 49
File builders/libepoxy-1/contrib/epoxy.pc.in added (mode: 100644) (index 0000000..cdda8d9)
1 prefix=@prefix@
2 exec_prefix=@exec_prefix@
3 libdir=@libdir@
4 includedir=@includedir@
5
6 epoxy_has_glx=@epoxy_has_glx@
7 epoxy_has_egl=@epoxy_has_egl@
8 epoxy_has_wgl=@epoxy_has_wgl@
9
10 Name: epoxy
11 Description: epoxy GL dispatch Library
12 Version: @PACKAGE_VERSION@
13 Cflags: -I${includedir}
14 Libs: -L${libdir} -lepoxy
15 Libs.private: @DLOPEN_LIBS@
16 Requires.private: @GL_REQS@
File builders/libepoxy-1/contrib/make.gnulinux changed (mode: 100755) (index 2dca1d5..6dca0b6)
1 1 #!/bin/sh #!/bin/sh
2
3 # this script is brutal and verbose, has no tricks and is quite linear, then
4 # quite easy to deal with
5
6 ################################################################################
7
8 # stolen from ffmpeg configure like a pig
9 2 set -e set -e
10
11 # Prevent locale nonsense from breaking basic text processing.
12 LC_ALL=C
13 export LC_ALL
14
3 #===============================================================================
15 4 sep_start() sep_start()
16 5 { {
17 6 printf '###############################################################################\n' printf '###############################################################################\n'
 
... ... sep_end()
21 10 { {
22 11 printf '###############################################################################\n\n' printf '###############################################################################\n\n'
23 12 } }
24
25 is_in()
26 {
27 value=$1
28 shift
29 for var in $*; do
30 [ $var = $value ] && return 0
31 done
32 return 1
33 }
34
35 die_unknown()
36 {
37 echo "Unknown option \"$1\"."
38 echo "See $0 --help for available options."
39 exit 1
40 }
41
42 set_default()
43 {
44 for opt; do
45 eval : \${$opt:=\$${opt}_default}
46 done
47 }
48
49 spaces_concat()
50 {
51 printf "$1" | tr -s '[:space:]' ' '
52 }
53
54 CMDLINE_SET='
55 python3
56 dslibepoxy_cc
57 dslibepoxy_ccld
58 prefix
59 eprefix
60 libdir
61 includedir
62 version
63 '
64
65 ################################################################################
66
67 #command line set defaults
68 13 #=============================================================================== #===============================================================================
69 # dynamically linked shared lib with a gcc toolchain
70 dslibepoxy_cc_default="gcc -Wall -Wextra \
71 -fvisibility=hidden \
72 -std=c99 -O2 -fPIC -c"
73
74 dslibepoxy_ccld_default="gcc -shared \
75 -Wl,-soname,libepoxy.so.0 \
76 -Bsymbolic \
77 -Wl,--no-undefined"
14 echo '****BUILD START****'
15 package_version=1.5.5
16 dslib_version_major=0
17 dslib_version_minor=1
18 dslib_version_micro=2
78 19 #=============================================================================== #===============================================================================
20 # build dir and src dir
21 build_dir=$(readlink -e .)
22 echo "build_dir=$build_dir"
23 # we are in contrib
24 src_dir=$(readlink -e $(dirname $0)/..)
25 echo "src_dir=$src_dir"
26 #===============================================================================
27 # the current configur-able variables may be individually overridden with the
28 # content of the file in $1 or $build_dir/local_conf.sh. Look for "unset"
29 # in those scripts to find what you can override to tune the build.
30 if test -f "$1"; then
31 . "$1"
32 else
33 if test -f $build_dir/local_conf.sh; then
34 . $build_dir/local_conf.sh
35 fi
36 fi
37 #===============================================================================
38 if test "${dslibepoxy_cc-unset}" = unset; then
39 dslibepoxy_cc="gcc -Wall -Wextra \
40 -fvisibility=hidden \
41 -std=c99 -O2 -fPIC -c"
42 fi
79 43
80 python3_default='$(/usr/bin/env python3)'
81 prefix_default=/usr/local
82 eprefix_default='$prefix'
83 libdir_default='$eprefix/lib'
84 includedir_default='$prefix/include'
85 version_default=1.5.3
86 set_default $CMDLINE_SET
87
88 ################################################################################
89
90 show_help(){
91 cat <<EOF
92 Usage: make.gnulinux [options]
93
94 default is to generate the development files and to build the dynamically linked shared lib
95
96 Options: [defaults in brackets after descriptions]
97
98 Help options:
99 --help print this message
100
101 Standard options:
102 --python3=BIN the python3 interpreter to use to generate code [$python3_default]
103 --prefix=PREFIX architecture independent prefix [$prefix_default]
104 --eprefix=EPREFIX architecture dependent exec prefix [$eprefix_default]
105 --libdir=DIR object code libraries [$libdir_default]
106 --includedir=DIR C header files [$includedir_default]
107
108 --version=VERSION override the version number [$version_default]
109
110 Advanced options:
111 --dslibepoxy-cc=CC use C compiler command line CC for target libepoxy archive [$(spaces_concat "$dslibepoxy_cc_default")]
112 --dslibepoxy-ccld=CCLD use linker command line CCLD for target dynamically linked shared libepoxy [$(spaces_concat "$dslibepoxy_ccld_default")]
113 EOF
114 exit 0
115 }
116
117 ################################################################################
118
119 for opt do
120 optval="${opt#*=}"
121 case "$opt" in
122 --help|-h) show_help
123 ;;
124 *)
125 optname=${opt%%=*}
126 optname=${optname#--}
127 optname=$(echo "$optname" | sed 's/-/_/g')
128 if is_in $optname $CMDLINE_SET; then
129 eval $optname='$optval'
130 else
131 die_unknown $opt
132 fi
133 ;;
134 esac
135 done
136
137 ################################################################################
138
139 path_expand()
140 {
141 e_v=$1
142 #we set a maximum expansion depth of 3
143 for d in 1 2 3
144 do
145 e_v=$(eval echo "$e_v")
146 done
147 #get rid of ugly double // in path
148 echo "$e_v" | sed -e 's%//%/%g'
149 }
150
151 sep_start;echo 'expanding final paths:'
152 e_prefix=$(path_expand "$prefix")
153 e_eprefix=$(path_expand "$eprefix")
154 e_libdir=$(path_expand "$libdir")
155 e_includedir=$(path_expand "$includedir")
156
157 echo "prefix=$e_prefix"
158 echo "eprefix=$e_eprefix"
159 echo "libdir=$e_libdir"
160 echo "includedir=$e_includedir"
161
162 printf "\nusing python3:$python3\n"
163 sep_end
164
165 ################################################################################
44 # template with soname, will be evaluated once
45 if test "${dslibepoxy_ccld-unset}" = unset; then
46 dslibepoxy_ccld="gcc -shared \
47 -Wl,-soname,libepoxy.so.\$soname \
48 -Bsymbolic \
49 -Wl,--no-undefined"
50 fi
51 #===============================================================================
52 if test "${python3-unset}" = unset; then
53 python3=$(/usr/bin/env python3)
54 fi
166 55
167 sep_start;echo 'looking for top source dir and top build dir:'
168 if test -f ./make.gnulinux; then
169 # we are in "$top_srcdir/contrib" dir
170 top_srcdir=..
171 else
172 top_srcdir=$(cd $(dirname "$0")/..; pwd)
56 if test "${prefix-unset}" = unset; then
57 prefix=/usr/local
173 58 fi fi
174 echo "top source dir is $top_srcdir"
175 59
176 top_builddir=$(readlink -e ./)
177 echo "top build dir is $top_builddir"
60 if test "${eprefix-unset}" = unset; then
61 eprefix=$prefix
62 fi
178 63
179 rm -Rf $top_builddir/fake_root
180 rm -Rf $top_builddir/gen_src
181 sep_end
64 if test "${lib_dir-unset}" = unset; then
65 lib_dir=$eprefix/lib
66 fi
182 67
183 ################################################################################
68 if test "${include_dir-unset}" = unset; then
69 include_dir=$prefix/include
70 fi
71 #===============================================================================
72 rm -Rf $build_dir/fake_root
73 rm -Rf $build_dir/gen_src
184 74
185 75 sep_start;echo 'dslibepoxy:generating include and source files with the python3 based generator' sep_start;echo 'dslibepoxy:generating include and source files with the python3 based generator'
186 mkdir -p -- $top_builddir/gen_src
187 mkdir -p -- $top_builddir/fake_root$e_includedir/epoxy
76 printf "using python3:$python3\n"
77 mkdir -p -- $build_dir/gen_src
78 mkdir -p -- $build_dir/fake_root$include_dir/epoxy
188 79
189 80 for registry in gl.xml glx.xml egl.xml for registry in gl.xml glx.xml egl.xml
190 81 do do
191 82 echo "PYTHON3 GEN $registry" echo "PYTHON3 GEN $registry"
192 $python3 $top_srcdir/src/gen_dispatch.py \
193 --srcdir $top_builddir/gen_src \
194 --includedir $top_builddir/fake_root$e_includedir/epoxy \
195 $top_srcdir/registry/$registry
83 $python3 $src_dir/src/gen_dispatch.py \
84 --srcdir $build_dir/gen_src \
85 --includedir $build_dir/fake_root$include_dir/epoxy \
86 $src_dir/registry/$registry &
196 87 done done
197 88 sep_end sep_end
198
199 ################################################################################
200
201 sep_start;echo "fake installing the header files in fake_root$e_includedir"
202 cp -f $top_srcdir/include/epoxy/common.h \
203 $top_srcdir/include/epoxy/gl.h \
204 $top_srcdir/include/epoxy/egl.h \
205 $top_srcdir/include/epoxy/glx.h \
206 $top_builddir/fake_root$e_includedir/epoxy
89 #===============================================================================
90 sep_start;echo "fake installing the header files in fake_root$include_dir"
91 wait
92 cp -f $src_dir/include/epoxy/common.h \
93 $src_dir/include/epoxy/gl.h \
94 $src_dir/include/epoxy/egl.h \
95 $src_dir/include/epoxy/glx.h \
96 $build_dir/fake_root$include_dir/epoxy
207 97 sep_end sep_end
208
209 ################################################################################
210
98 #===============================================================================
211 99 sep_start;echo 'dslibepoxy:compile src files' sep_start;echo 'dslibepoxy:compile src files'
212
213 100 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
214 # take one parameter: the top dir where to find the source files
101 # take one parameter: the dir where to find the source files
215 102 compile() compile()
216 103 { {
217 104 for libepoxy_src_file in $libepoxy_src_files for libepoxy_src_file in $libepoxy_src_files
 
... ... do
220 107 dslibepoxy_o_file_name=$(basename $libepoxy_src_file .c) dslibepoxy_o_file_name=$(basename $libepoxy_src_file .c)
221 108 dslibepoxy_o_file=$(dirname $libepoxy_src_file)/ds${dslibepoxy_o_file_name}.o dslibepoxy_o_file=$(dirname $libepoxy_src_file)/ds${dslibepoxy_o_file_name}.o
222 109
223 mkdir -p -- $(dirname $top_builddir/$dslibepoxy_o_file)
110 mkdir -p -- $(dirname $build_dir/$dslibepoxy_o_file)
224 111
225 112 # we rely on pkg-config to prioritize x11 headers # we rely on pkg-config to prioritize x11 headers
226 echo "DSLIBEPOXY_CC $1/$libepoxy_src_file--->$top_builddir/$dslibepoxy_o_file"
227 $dslibepoxy_cc -o $top_builddir/$dslibepoxy_o_file \
113 echo "DSLIBEPOXY_CC $1/$libepoxy_src_file--->$build_dir/$dslibepoxy_o_file"
114 $dslibepoxy_cc -o $build_dir/$dslibepoxy_o_file \
228 115 $(pkg-config --cflags x11 egl) \ $(pkg-config --cflags x11 egl) \
229 -I$top_builddir/fake_root$e_includedir \
230 -I$top_srcdir/contrib \
231 -I$top_srcdir/src \
232 $1/$libepoxy_src_file
116 -I$build_dir/fake_root$include_dir \
117 -I$src_dir/contrib \
118 -I$src_dir/src \
119 $1/$libepoxy_src_file &
233 120
234 dslibepoxy_o_files="$top_builddir/$dslibepoxy_o_file $dslibepoxy_o_files"
121 dslibepoxy_o_files="$build_dir/$dslibepoxy_o_file $dslibepoxy_o_files"
235 122 done done
236
237 123 } }
238 124 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
239
240 125 libepoxy_src_files=" libepoxy_src_files="
241 126 gen_src/egl_generated_dispatch.c gen_src/egl_generated_dispatch.c
242 127 gen_src/gl_generated_dispatch.c gen_src/gl_generated_dispatch.c
243 128 gen_src/glx_generated_dispatch.c gen_src/glx_generated_dispatch.c
244 129 " "
245 compile $top_builddir
130 compile $build_dir
246 131
247 132 libepoxy_src_files=" libepoxy_src_files="
248 133 src/dispatch_egl.c src/dispatch_egl.c
249 134 src/dispatch_glx.c src/dispatch_glx.c
250 135 src/dispatch_common.c src/dispatch_common.c
251 136 " "
252 compile $top_srcdir
137 compile $src_dir
253 138
254 139 sep_end sep_end
255
256 ################################################################################
257
140 #===============================================================================
258 141 sep_start;echo 'dslibepoxy:link the object files to produce the dynamically linked shared lib' sep_start;echo 'dslibepoxy:link the object files to produce the dynamically linked shared lib'
259 echo "DSLIBEPOXY_CCLD libepoxy.so.0.0.0"
142 echo "DSLIBEPOXY_CCLD libepoxy.so.$dslib_version_major.$dslib_version_minor.$dslib_version_micro"
260 143
261 mkdir -p -- $top_builddir/fake_root$e_libdir
144 mkdir -p -- $build_dir/fake_root$lib_dir
262 145
263 $dslibepoxy_ccld -o $top_builddir/fake_root$e_libdir/libepoxy.so.0.0.0 \
264 $dslibepoxy_o_files \
265 -ldl
266
267 ln -sf libepoxy.so.0.0.0 $top_builddir/fake_root$e_libdir/libepoxy.so.0
268 ln -sf libepoxy.so.0 $top_builddir/fake_root$e_libdir/libepoxy.so
269 sep_end
146 # evaluate the ccld template with the soname parameter
147 soname=libepoxy.so.$dslib_version_major
148 eval "dslibepoxy_ccld_e=\"$dslibepoxy_ccld\""
270 149
271 ################################################################################
150 wait
151 $dslibepoxy_ccld_e -o $build_dir/fake_root$lib_dir/libepoxy.so.$dslib_version_major.$dslib_version_minor.$dslib_version_micro \
152 $dslibepoxy_o_files \
153 -ldl &
272 154
155 ln -sf libepoxy.so.$dslib_version_major.$dslib_version_minor.$dslib_version_micro $build_dir/fake_root$lib_dir/libepoxy.so.$dslib_version_major
156 ln -sf libepoxy.so.$dslib_version_major $build_dir/fake_root$lib_dir/libepoxy.so
157 sep_end
158 #===============================================================================
273 159 sep_start;echo 'generating pkg-config file for epoxy' sep_start;echo 'generating pkg-config file for epoxy'
274 mkdir -p -- $top_builddir/fake_root$e_libdir/pkgconfig
275
276 cp -f $top_srcdir/epoxy.pc.in $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
277 sed -i "s%@PACKAGE_VERSION@%$version%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
278 sed -i "s%@prefix@%$e_prefix%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
279 sed -i "s%@exec_prefix@%$e_eprefix%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
280 sed -i "s%@libdir@%$e_libdir%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
281 sed -i "s%@includedir@%$e_includedir%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
282 sed -i "s%@DLOPEN_LIBS@%-ldl%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
283 sed -i "s%@epoxy_has_glx@%1%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
284 sed -i "s%@epoxy_has_egl@%1%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
285 sed -i "s%@epoxy_has_wgl@%0%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
286 sed -i "s%@GL_REQS@%gl egl%" $top_builddir/fake_root$e_libdir/pkgconfig/epoxy.pc
160 mkdir -p -- $build_dir/fake_root$lib_dir/pkgconfig
161
162 cp -f $src_dir/contrib/epoxy.pc.in $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
163 sed -i "s%@PACKAGE_VERSION@%$package_version%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
164 sed -i "s%@prefix@%$prefix%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
165 sed -i "s%@exec_prefix@%$eprefix%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
166 sed -i "s%@libdir@%$lib_dir%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
167 sed -i "s%@includedir@%$include_dir%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
168 sed -i "s%@DLOPEN_LIBS@%-ldl%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
169 sed -i "s%@epoxy_has_glx@%1%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
170 sed -i "s%@epoxy_has_egl@%1%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
171 sed -i "s%@epoxy_has_wgl@%0%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
172 sed -i "s%@GL_REQS@%gl egl%" $build_dir/fake_root$lib_dir/pkgconfig/epoxy.pc
287 173 sep_end sep_end
174 #===============================================================================
175 wait
176 echo '****BUILD FINISHED****'
File builders/llvm-1/builder.sh changed (mode: 100644) (index 17d31c4..850e522)
1 1 src_name=llvm-project src_name=llvm-project
2 git_commit=08390c52a2902502cd9b25472aa4c6380230c18e
2 git_commit=ae5484540f15bcbcb0de9558e66b0217ab8473ed
3 3 git_url0=git://github.com/llvm/$src_name git_url0=git://github.com/llvm/$src_name
4 4
5 5 slot=1 slot=1
File builders/mesa-gl-1/builder.sh changed (mode: 100644) (index 2da39ed..e106283)
1 1 src_name=mesa src_name=mesa
2 git_commit=ef9635d0bce9383a22bb3a8506da4d55726e5d59
2 git_commit=0eb78a078e898e7d5a1425f82513293f9e68e86b
3 3 git_url0=git://anongit.freedesktop.org/mesa/$pkg_name git_url0=git://anongit.freedesktop.org/mesa/$pkg_name
4 4
5 5 slot=1 slot=1
 
... ... rm -Rf $build_dir
27 27 mkdir -p $build_dir mkdir -p $build_dir
28 28 cd $build_dir cd $build_dir
29 29
30 # copy the local configuration file
31 cp -f $nyan_root/builders/$pkg_name/local_conf.sh ./
30 # create the local configuration file
31 cat >$build_dir/local_conf.sh <<EOF
32 prefix=/nyan/mesa-gl/$slot
33 sysconfdir=/nyan/mesa-gl/$slot/etc
34 datadir=/nyan/mesa-gl/$slot/share
35 libdir=/nyan/mesa-gl/$slot/lib
36 incdir=/nyan/mesa-gl/$slot/include
37 dri_driver_search_dir=/nyan/mesa-gl/$slot/lib/dri
38 EOF
32 39
33 40 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
34 41
File builders/mesa-gl-1/contrib/amd.sh changed (mode: 100644) (index 1c8bd2a..d442d61)
... ... $src_dir/src/amd/registers/gfx10-rsrc.json \
75 75 libamd_common_c_files="\ libamd_common_c_files="\
76 76 $src_dir/src/amd/common/ac_binary.c \ $src_dir/src/amd/common/ac_binary.c \
77 77 $src_dir/src/amd/common/ac_shader_util.c \ $src_dir/src/amd/common/ac_shader_util.c \
78 $src_dir/src/amd/common/ac_shader_args.c \
78 79 $src_dir/src/amd/common/ac_gpu_info.c \ $src_dir/src/amd/common/ac_gpu_info.c \
79 80 $src_dir/src/amd/common/ac_surface.c \ $src_dir/src/amd/common/ac_surface.c \
80 81 $src_dir/src/amd/common/ac_debug.c \ $src_dir/src/amd/common/ac_debug.c \
File builders/mesa-gl-1/contrib/compiler_glsl.sh changed (mode: 100644) (index 1587176..5d38943)
... ... wait
19 19
20 20 libglcpp_files="\ libglcpp_files="\
21 21 $src_dir/src/compiler/glsl/glcpp/pp.c \ $src_dir/src/compiler/glsl/glcpp/pp.c \
22 $src_dir/src/compiler/glsl/glcpp/pp_standalone_scaffolding.c \
22 23 $build_dir/src/compiler/glsl/glcpp/glcpp-lex.c \ $build_dir/src/compiler/glsl/glcpp/glcpp-lex.c \
23 24 $build_dir/src/compiler/glsl/glcpp/glcpp-parse.c \ $build_dir/src/compiler/glsl/glcpp/glcpp-parse.c \
24 25 " "
File builders/mesa-gl-1/contrib/compiler_nir.sh changed (mode: 100644) (index 0de24e2..fff5991)
... ... $src_dir/src/compiler/nir/nir_opt_idiv_const.c \
132 132 $src_dir/src/compiler/nir/nir_opt_if.c \ $src_dir/src/compiler/nir/nir_opt_if.c \
133 133 $src_dir/src/compiler/nir/nir_opt_intrinsics.c \ $src_dir/src/compiler/nir/nir_opt_intrinsics.c \
134 134 $src_dir/src/compiler/nir/nir_opt_large_constants.c \ $src_dir/src/compiler/nir/nir_opt_large_constants.c \
135 $src_dir/src/compiler/nir/nir_opt_load_store_vectorize.c \
135 136 $src_dir/src/compiler/nir/nir_opt_loop_unroll.c \ $src_dir/src/compiler/nir/nir_opt_loop_unroll.c \
136 137 $src_dir/src/compiler/nir/nir_opt_move.c \ $src_dir/src/compiler/nir/nir_opt_move.c \
137 138 $src_dir/src/compiler/nir/nir_opt_peephole_select.c \ $src_dir/src/compiler/nir/nir_opt_peephole_select.c \
 
... ... $src_dir/src/compiler/nir/nir_range_analysis.c \
149 150 $src_dir/src/compiler/nir/nir_remove_dead_variables.c \ $src_dir/src/compiler/nir/nir_remove_dead_variables.c \
150 151 $src_dir/src/compiler/nir/nir_repair_ssa.c \ $src_dir/src/compiler/nir/nir_repair_ssa.c \
151 152 $src_dir/src/compiler/nir/nir_search.c \ $src_dir/src/compiler/nir/nir_search.c \
153 $src_dir/src/compiler/nir/nir_schedule.c \
152 154 $src_dir/src/compiler/nir/nir_serialize.c \ $src_dir/src/compiler/nir/nir_serialize.c \
153 155 $src_dir/src/compiler/nir/nir_split_per_member_structs.c \ $src_dir/src/compiler/nir/nir_split_per_member_structs.c \
154 156 $src_dir/src/compiler/nir/nir_split_var_copies.c \ $src_dir/src/compiler/nir/nir_split_var_copies.c \
155 157 $src_dir/src/compiler/nir/nir_split_vars.c \ $src_dir/src/compiler/nir/nir_split_vars.c \
156 $src_dir/src/compiler/nir/nir_strip.c \
157 158 $src_dir/src/compiler/nir/nir_sweep.c \ $src_dir/src/compiler/nir/nir_sweep.c \
158 159 $src_dir/src/compiler/nir/nir_to_lcssa.c \ $src_dir/src/compiler/nir/nir_to_lcssa.c \
159 160 $src_dir/src/compiler/nir/nir_validate.c \ $src_dir/src/compiler/nir/nir_validate.c \
File builders/mesa-gl-1/contrib/gallium_auxiliary.sh changed (mode: 100644) (index 0661dc9..0237ae6)
... ... $src_dir/src/gallium/auxiliary/util/u_transfer_helper.c \
175 175 $src_dir/src/gallium/auxiliary/util/u_threaded_context.c \ $src_dir/src/gallium/auxiliary/util/u_threaded_context.c \
176 176 $src_dir/src/gallium/auxiliary/util/u_upload_mgr.c \ $src_dir/src/gallium/auxiliary/util/u_upload_mgr.c \
177 177 $src_dir/src/gallium/auxiliary/util/u_vbuf.c \ $src_dir/src/gallium/auxiliary/util/u_vbuf.c \
178 $src_dir/src/gallium/auxiliary/nir/nir_draw_helpers.c \
179 $src_dir/src/gallium/auxiliary/nir/nir_to_tgsi_info.c \
178 180 $src_dir/src/gallium/auxiliary/nir/tgsi_to_nir.c \ $src_dir/src/gallium/auxiliary/nir/tgsi_to_nir.c \
179 181 \ \
180 182 $src_dir/src/gallium/auxiliary/renderonly/renderonly.c \ $src_dir/src/gallium/auxiliary/renderonly/renderonly.c \
 
... ... $src_dir/src/gallium/auxiliary/gallivm/lp_bld_format_srgb.c \
197 199 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_format_yuv.c \
198 200 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_gather.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_gather.c \
199 201 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_init.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_init.c \
202 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_ir_common.c \
200 203 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_intr.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_intr.c \
201 204 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_logic.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_logic.c \
205 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_nir.c \
206 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c \
202 207 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_pack.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_pack.c \
203 208 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_printf.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_printf.c \
204 209 $src_dir/src/gallium/auxiliary/gallivm/lp_bld_quad.c \ $src_dir/src/gallium/auxiliary/gallivm/lp_bld_quad.c \
 
... ... do
238 243
239 244 $cco_slib -o $libgallium_c_obj $f \ $cco_slib -o $libgallium_c_obj $f \
240 245 -I$build_dir/src/compiler/nir \ -I$build_dir/src/compiler/nir \
246 -I$src_dir/src/compiler/nir \
241 247 -I$src_dir/src/gallium/auxiliary/util \ -I$src_dir/src/gallium/auxiliary/util \
242 248 -I$src_dir/src/gallium/auxiliary \ -I$src_dir/src/gallium/auxiliary \
243 249 -I$src_dir/src/gallium/include \ -I$src_dir/src/gallium/include \
File builders/mesa-gl-1/local_conf.sh deleted (index 5817746..0000000)
1 slot=1
2 prefix="/nyan/mesa-gl/$slot"
3 sysconfdir="/nyan/mesa-gl/$slot/etc"
4 datadir="/nyan/mesa-gl/$slot/share"
5 libdir="/nyan/mesa-gl/$slot/lib"
6 incdir="/nyan/mesa-gl/$slot/include"
7 dri_driver_search_dir="/nyan/mesa-gl/$slot/lib/dri"
File builders/mesa-vulkan-1/builder.sh changed (mode: 100644) (index 51b2ae8..8b75612)
1 1 src_name=mesa src_name=mesa
2 git_commit=ef9635d0bce9383a22bb3a8506da4d55726e5d59
2 git_commit=0eb78a078e898e7d5a1425f82513293f9e68e86b
3 3 git_url0=git://anongit.freedesktop.org/mesa/$src_name git_url0=git://anongit.freedesktop.org/mesa/$src_name
4 4
5 5 slot=1 slot=1
File builders/mesa-vulkan-1/contrib/generators/nir/intrinsics/generic/load.c changed (mode: 100644) (index 054d698..3b968d7)
... ... struct nir_intrinsic nir_load_output_u8_as_fd16_pan = {
267 267 .has_dest = true, .has_dest = true,
268 268 .flags = NIR_INTRINSIC_FLAGS_CAN_ELIMINATE | NIR_INTRINSIC_FLAGS_CAN_REORDER .flags = NIR_INTRINSIC_FLAGS_CAN_ELIMINATE | NIR_INTRINSIC_FLAGS_CAN_REORDER
269 269 }; };
270 /*
271 * hardware specific ??
272 * Loads the sampler paramaters <min_lod, max_lod, lod_bias>
273 * src[] = { sampler_index }
274 */
275 struct nir_intrinsic nir_load_sampler_lod_parameters_pan = {
276 .name = "load_sampler_lod_paramenters_pan",
277 .srcs_n = 1,
278 .src_components_n = {
279 1
280 },
281 .has_dest = true,
282 .flags = NIR_INTRINSIC_FLAGS_CAN_ELIMINATE | NIR_INTRINSIC_FLAGS_CAN_REORDER
283 };
270 284 /******************************************************************************/ /******************************************************************************/
271 285
File builders/mesa-vulkan-1/contrib/generators/nir/nir_database_alu.c changed (mode: 100644) (index b97ab69..1a05f13)
4 4 */ */
5 5 #define NIR_TYPE_BOOL 1 #define NIR_TYPE_BOOL 1
6 6 #define NIR_TYPE_BOOL1 2 #define NIR_TYPE_BOOL1 2
7 #define NIR_TYPE_BOOL32 3
8 #define NIR_TYPE_INT 4
9 #define NIR_TYPE_INT1 5
10 #define NIR_TYPE_INT8 6
11 #define NIR_TYPE_INT16 7
12 #define NIR_TYPE_INT32 8
13 #define NIR_TYPE_INT64 9
14 #define NIR_TYPE_UINT 10
15 #define NIR_TYPE_UINT1 11
16 #define NIR_TYPE_UINT8 12
17 #define NIR_TYPE_UINT16 13
18 #define NIR_TYPE_UINT32 14
19 #define NIR_TYPE_UINT64 15
20 #define NIR_TYPE_FLOAT 16
21 #define NIR_TYPE_FLOAT16 17
22 #define NIR_TYPE_FLOAT32 18
23 #define NIR_TYPE_FLOAT64 19
7 #define NIR_TYPE_BOOL8 3
8 #define NIR_TYPE_BOOL16 4
9 #define NIR_TYPE_BOOL32 5
10 #define NIR_TYPE_INT 6
11 #define NIR_TYPE_INT1 7
12 #define NIR_TYPE_INT8 8
13 #define NIR_TYPE_INT16 9
14 #define NIR_TYPE_INT32 10
15 #define NIR_TYPE_INT64 11
16 #define NIR_TYPE_UINT 12
17 #define NIR_TYPE_UINT1 13
18 #define NIR_TYPE_UINT8 14
19 #define NIR_TYPE_UINT16 15
20 #define NIR_TYPE_UINT32 16
21 #define NIR_TYPE_UINT64 17
22 #define NIR_TYPE_FLOAT 18
23 #define NIR_TYPE_FLOAT16 19
24 #define NIR_TYPE_FLOAT32 20
25 #define NIR_TYPE_FLOAT64 21
24 26
25 27 #define NIR_OP_TYPE_UNDEFINED 0 #define NIR_OP_TYPE_UNDEFINED 0
26 28 /* XXX: current database factorization makes the following useless */ /* XXX: current database factorization makes the following useless */
 
... ... static struct nir_op nir_b2i8 = {
123 125 {NIR_TYPE_BOOL}, {NIR_TYPE_BOOL},
124 126 0 0
125 127 }; };
128 /*============================================================================*/
129 /* b[1,8,16,32]all_fequal */
130 static struct nir_op nir_ball_fequal2 = {
131 "ball_fequal2",
132 NIR_OP_TYPE_ALU,
133 1,
134 NIR_TYPE_BOOL1,
135 2,
136 {2,2},
137 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
138 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
139 };
140 static struct nir_op nir_ball_fequal3 = {
141 "ball_fequal3",
142 NIR_OP_TYPE_ALU,
143 1,
144 NIR_TYPE_BOOL1,
145 2,
146 {3,3},
147 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
148 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
149 };
150 static struct nir_op nir_ball_fequal4 = {
151 "ball_fequal4",
152 NIR_OP_TYPE_ALU,
153 1,
154 NIR_TYPE_BOOL1,
155 2,
156 {4,4},
157 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
158 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
159 };
160 /*----------------------------------------------------------------------------*/
161 static struct nir_op nir_b8all_fequal2 = {
162 "b8all_fequal2",
163 NIR_OP_TYPE_ALU,
164 1,
165 NIR_TYPE_BOOL8,
166 2,
167 {2,2},
168 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
169 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
170 };
171 static struct nir_op nir_b8all_fequal3 = {
172 "b8all_fequal3",
173 NIR_OP_TYPE_ALU,
174 1,
175 NIR_TYPE_BOOL8,
176 2,
177 {3,3},
178 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
179 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
180 };
181 static struct nir_op nir_b8all_fequal4 = {
182 "b8all_fequal4",
183 NIR_OP_TYPE_ALU,
184 1,
185 NIR_TYPE_BOOL8,
186 2,
187 {4,4},
188 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
189 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
190 };
191 /*----------------------------------------------------------------------------*/
192 static struct nir_op nir_b16all_fequal2 = {
193 "b16all_fequal2",
194 NIR_OP_TYPE_ALU,
195 1,
196 NIR_TYPE_BOOL16,
197 2,
198 {2,2},
199 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
200 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
201 };
202 static struct nir_op nir_b16all_fequal3 = {
203 "b16all_fequal3",
204 NIR_OP_TYPE_ALU,
205 1,
206 NIR_TYPE_BOOL16,
207 2,
208 {3,3},
209 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
210 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
211 };
212 static struct nir_op nir_b16all_fequal4 = {
213 "b16all_fequal4",
214 NIR_OP_TYPE_ALU,
215 1,
216 NIR_TYPE_BOOL16,
217 2,
218 {4,4},
219 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
220 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
221 };
222 /*----------------------------------------------------------------------------*/
126 223 static struct nir_op nir_b32all_fequal2 = { static struct nir_op nir_b32all_fequal2 = {
127 224 "b32all_fequal2", "b32all_fequal2",
128 225 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_b32all_fequal4 = {
153 250 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
154 251 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
155 252 }; };
156 static struct nir_op nir_b32all_iequal2 = {
157 "b32all_iequal2",
253 /* b[1,8,16,32]all_fequal */
254 /*============================================================================*/
255 /* b[1,8,16,32]all_iequal */
256 static struct nir_op nir_ball_iequal2 = {
257 "ball_iequal2",
158 258 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
159 259 1, 1,
160 NIR_TYPE_BOOL32,
260 NIR_TYPE_BOOL1,
161 261 2, 2,
162 262 {2,2}, {2,2},
163 263 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
164 264 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
165 265 }; };
166 static struct nir_op nir_b32all_iequal3 = {
167 "b32all_iequal3",
266 static struct nir_op nir_ball_iequal3 = {
267 "ball_iequal3",
168 268 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
169 269 1, 1,
170 NIR_TYPE_BOOL32,
270 NIR_TYPE_BOOL1,
171 271 2, 2,
172 272 {3,3}, {3,3},
173 273 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
174 274 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
175 275 }; };
176 static struct nir_op nir_b32all_iequal4 = {
177 "b32all_iequal4",
276 static struct nir_op nir_ball_iequal4 = {
277 "ball_iequal4",
178 278 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
179 279 1, 1,
180 NIR_TYPE_BOOL32,
280 NIR_TYPE_BOOL1,
181 281 2, 2,
182 282 {4,4}, {4,4},
183 283 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
184 284 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
185 285 }; };
186 static struct nir_op nir_b32any_fnequal2 = {
187 "b32any_fnequal2",
286 /*----------------------------------------------------------------------------*/
287 static struct nir_op nir_b8all_iequal2 = {
288 "b8all_iequal2",
188 289 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
189 290 1, 1,
190 NIR_TYPE_BOOL32,
291 NIR_TYPE_BOOL8,
191 292 2, 2,
192 293 {2,2}, {2,2},
193 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
294 {NIR_TYPE_INT,NIR_TYPE_INT},
194 295 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
195 296 }; };
196 static struct nir_op nir_b32any_fnequal3 = {
197 "b32any_fnequal3",
297 static struct nir_op nir_b8all_iequal3 = {
298 "b8all_iequal3",
198 299 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
199 300 1, 1,
200 NIR_TYPE_BOOL32,
301 NIR_TYPE_BOOL8,
201 302 2, 2,
202 303 {3,3}, {3,3},
203 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
304 {NIR_TYPE_INT,NIR_TYPE_INT},
204 305 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
205 306 }; };
206 static struct nir_op nir_b32any_fnequal4 = {
207 "b32any_fnequal4",
307 static struct nir_op nir_b8all_iequal4 = {
308 "b8all_iequal4",
208 309 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
209 310 1, 1,
210 NIR_TYPE_BOOL32,
311 NIR_TYPE_BOOL8,
211 312 2, 2,
212 313 {4,4}, {4,4},
213 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
314 {NIR_TYPE_INT,NIR_TYPE_INT},
214 315 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
215 316 }; };
216 static struct nir_op nir_b32any_inequal2 = {
217 "b32any_inequal2",
317 /*----------------------------------------------------------------------------*/
318 static struct nir_op nir_b16all_iequal2 = {
319 "b16all_iequal2",
320 NIR_OP_TYPE_ALU,
321 1,
322 NIR_TYPE_BOOL16,
323 2,
324 {2,2},
325 {NIR_TYPE_INT,NIR_TYPE_INT},
326 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
327 };
328 static struct nir_op nir_b16all_iequal3 = {
329 "b16all_iequal3",
330 NIR_OP_TYPE_ALU,
331 1,
332 NIR_TYPE_BOOL16,
333 2,
334 {3,3},
335 {NIR_TYPE_INT,NIR_TYPE_INT},
336 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
337 };
338 static struct nir_op nir_b16all_iequal4 = {
339 "b16all_iequal4",
340 NIR_OP_TYPE_ALU,
341 1,
342 NIR_TYPE_BOOL16,
343 2,
344 {4,4},
345 {NIR_TYPE_INT,NIR_TYPE_INT},
346 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
347 };
348 /*----------------------------------------------------------------------------*/
349 static struct nir_op nir_b32all_iequal2 = {
350 "b32all_iequal2",
218 351 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
219 352 1, 1,
220 353 NIR_TYPE_BOOL32, NIR_TYPE_BOOL32,
 
... ... static struct nir_op nir_b32any_inequal2 = {
223 356 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
224 357 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
225 358 }; };
226 static struct nir_op nir_b32any_inequal3 = {
227 "b32any_inequal3",
359 static struct nir_op nir_b32all_iequal3 = {
360 "b32all_iequal3",
228 361 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
229 362 1, 1,
230 363 NIR_TYPE_BOOL32, NIR_TYPE_BOOL32,
 
... ... static struct nir_op nir_b32any_inequal3 = {
233 366 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
234 367 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
235 368 }; };
236 static struct nir_op nir_b32any_inequal4 = {
237 "b32any_inequal4",
369 static struct nir_op nir_b32all_iequal4 = {
370 "b32all_iequal4",
238 371 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
239 372 1, 1,
240 373 NIR_TYPE_BOOL32, NIR_TYPE_BOOL32,
 
... ... static struct nir_op nir_b32any_inequal4 = {
243 376 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
244 377 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
245 378 }; };
246 static struct nir_op nir_b32csel = {
247 "b32csel",
248 NIR_OP_TYPE_ALU,
249 0,
250 NIR_TYPE_UINT,
251 3,
252 {0,0,0},
253 {NIR_TYPE_BOOL32,NIR_TYPE_UINT,NIR_TYPE_UINT},
254 0
255 };
256 static struct nir_op nir_ball_fequal2 = {
257 "ball_fequal2",
379 /* b[1,8,16,32]all_iequal */
380 /*============================================================================*/
381 /* b[1,8,16,32]any_fequal */
382 static struct nir_op nir_bany_fnequal2 = {
383 "bany_fnequal2",
258 384 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
259 385 1, 1,
260 386 NIR_TYPE_BOOL1, NIR_TYPE_BOOL1,
 
... ... static struct nir_op nir_ball_fequal2 = {
263 389 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
264 390 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
265 391 }; };
266 static struct nir_op nir_ball_fequal3 = {
267 "ball_fequal3",
392 static struct nir_op nir_bany_fnequal3 = {
393 "bany_fnequal3",
268 394 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
269 395 1, 1,
270 396 NIR_TYPE_BOOL1, NIR_TYPE_BOOL1,
 
... ... static struct nir_op nir_ball_fequal3 = {
273 399 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
274 400 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
275 401 }; };
276 static struct nir_op nir_ball_fequal4 = {
277 "ball_fequal4",
402 static struct nir_op nir_bany_fnequal4 = {
403 "bany_fnequal4",
278 404 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
279 405 1, 1,
280 406 NIR_TYPE_BOOL1, NIR_TYPE_BOOL1,
 
... ... static struct nir_op nir_ball_fequal4 = {
283 409 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
284 410 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
285 411 }; };
286 static struct nir_op nir_ball_iequal2 = {
287 "ball_iequal2",
412 /*----------------------------------------------------------------------------*/
413 static struct nir_op nir_b8any_fnequal2 = {
414 "b8any_fnequal2",
288 415 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
289 416 1, 1,
290 NIR_TYPE_BOOL1,
417 NIR_TYPE_BOOL8,
291 418 2, 2,
292 419 {2,2}, {2,2},
293 {NIR_TYPE_INT,NIR_TYPE_INT},
420 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
294 421 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
295 422 }; };
296 static struct nir_op nir_ball_iequal3 = {
297 "ball_iequal3",
423 static struct nir_op nir_b8any_fnequal3 = {
424 "b8any_fnequal3",
298 425 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
299 426 1, 1,
300 NIR_TYPE_BOOL1,
427 NIR_TYPE_BOOL8,
301 428 2, 2,
302 429 {3,3}, {3,3},
303 {NIR_TYPE_INT,NIR_TYPE_INT},
430 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
304 431 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
305 432 }; };
306 static struct nir_op nir_ball_iequal4 = {
307 "ball_iequal4",
433 static struct nir_op nir_b8any_fnequal4 = {
434 "b8any_fnequal4",
308 435 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
309 436 1, 1,
310 NIR_TYPE_BOOL1,
437 NIR_TYPE_BOOL8,
311 438 2, 2,
312 439 {4,4}, {4,4},
313 {NIR_TYPE_INT,NIR_TYPE_INT},
440 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
314 441 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
315 442 }; };
316 static struct nir_op nir_bany_fnequal2 = {
317 "bany_fnequal2",
443 /*----------------------------------------------------------------------------*/
444 static struct nir_op nir_b16any_fnequal2 = {
445 "b16any_fnequal2",
318 446 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
319 447 1, 1,
320 NIR_TYPE_BOOL1,
448 NIR_TYPE_BOOL16,
321 449 2, 2,
322 450 {2,2}, {2,2},
323 451 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
324 452 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
325 453 }; };
326 static struct nir_op nir_bany_fnequal3 = {
327 "bany_fnequal3",
454 static struct nir_op nir_b16any_fnequal3 = {
455 "b16any_fnequal3",
328 456 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
329 457 1, 1,
330 NIR_TYPE_BOOL1,
458 NIR_TYPE_BOOL16,
331 459 2, 2,
332 460 {3,3}, {3,3},
333 461 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
334 462 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
335 463 }; };
336 static struct nir_op nir_bany_fnequal4 = {
337 "bany_fnequal4",
464 static struct nir_op nir_b16any_fnequal4 = {
465 "b16any_fnequal4",
338 466 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
339 467 1, 1,
340 NIR_TYPE_BOOL1,
468 NIR_TYPE_BOOL16,
341 469 2, 2,
342 470 {4,4}, {4,4},
343 471 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
344 472 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
345 473 }; };
474 /*----------------------------------------------------------------------------*/
475 static struct nir_op nir_b32any_fnequal2 = {
476 "b32any_fnequal2",
477 NIR_OP_TYPE_ALU,
478 1,
479 NIR_TYPE_BOOL32,
480 2,
481 {2,2},
482 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
483 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
484 };
485 static struct nir_op nir_b32any_fnequal3 = {
486 "b32any_fnequal3",
487 NIR_OP_TYPE_ALU,
488 1,
489 NIR_TYPE_BOOL32,
490 2,
491 {3,3},
492 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
493 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
494 };
495 static struct nir_op nir_b32any_fnequal4 = {
496 "b32any_fnequal4",
497 NIR_OP_TYPE_ALU,
498 1,
499 NIR_TYPE_BOOL32,
500 2,
501 {4,4},
502 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
503 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
504 };
505 /* b[1,8,16,32]any_fequal */
506 /*============================================================================*/
507 /* b[1,8,16,32]any_iequal */
346 508 static struct nir_op nir_bany_inequal2 = { static struct nir_op nir_bany_inequal2 = {
347 509 "bany_inequal2", "bany_inequal2",
348 510 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_bany_inequal4 = {
373 535 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
374 536 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
375 537 }; };
538 /*----------------------------------------------------------------------------*/
539 static struct nir_op nir_b8any_inequal2 = {
540 "b8any_inequal2",
541 NIR_OP_TYPE_ALU,
542 1,
543 NIR_TYPE_BOOL8,
544 2,
545 {2,2},
546 {NIR_TYPE_INT,NIR_TYPE_INT},
547 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
548 };
549 static struct nir_op nir_b8any_inequal3 = {
550 "b8any_inequal3",
551 NIR_OP_TYPE_ALU,
552 1,
553 NIR_TYPE_BOOL8,
554 2,
555 {3,3},
556 {NIR_TYPE_INT,NIR_TYPE_INT},
557 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
558 };
559 static struct nir_op nir_b8any_inequal4 = {
560 "b8any_inequal4",
561 NIR_OP_TYPE_ALU,
562 1,
563 NIR_TYPE_BOOL8,
564 2,
565 {4,4},
566 {NIR_TYPE_INT,NIR_TYPE_INT},
567 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
568 };
569 /*----------------------------------------------------------------------------*/
570 static struct nir_op nir_b16any_inequal2 = {
571 "b16any_inequal2",
572 NIR_OP_TYPE_ALU,
573 1,
574 NIR_TYPE_BOOL16,
575 2,
576 {2,2},
577 {NIR_TYPE_INT,NIR_TYPE_INT},
578 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
579 };
580 static struct nir_op nir_b16any_inequal3 = {
581 "b16any_inequal3",
582 NIR_OP_TYPE_ALU,
583 1,
584 NIR_TYPE_BOOL16,
585 2,
586 {3,3},
587 {NIR_TYPE_INT,NIR_TYPE_INT},
588 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
589 };
590 static struct nir_op nir_b16any_inequal4 = {
591 "b16any_inequal4",
592 NIR_OP_TYPE_ALU,
593 1,
594 NIR_TYPE_BOOL16,
595 2,
596 {4,4},
597 {NIR_TYPE_INT,NIR_TYPE_INT},
598 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
599 };
600 /*----------------------------------------------------------------------------*/
601 static struct nir_op nir_b32any_inequal2 = {
602 "b32any_inequal2",
603 NIR_OP_TYPE_ALU,
604 1,
605 NIR_TYPE_BOOL32,
606 2,
607 {2,2},
608 {NIR_TYPE_INT,NIR_TYPE_INT},
609 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
610 };
611 static struct nir_op nir_b32any_inequal3 = {
612 "b32any_inequal3",
613 NIR_OP_TYPE_ALU,
614 1,
615 NIR_TYPE_BOOL32,
616 2,
617 {3,3},
618 {NIR_TYPE_INT,NIR_TYPE_INT},
619 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
620 };
621 static struct nir_op nir_b32any_inequal4 = {
622 "b32any_inequal4",
623 NIR_OP_TYPE_ALU,
624 1,
625 NIR_TYPE_BOOL32,
626 2,
627 {4,4},
628 {NIR_TYPE_INT,NIR_TYPE_INT},
629 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
630 };
631 /* b[1,8,16,32]any_iequal */
632 /*============================================================================*/
633 /* b[1,8,16,32]csel */
376 634 static struct nir_op nir_bcsel = { static struct nir_op nir_bcsel = {
377 635 "bcsel", "bcsel",
378 636 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_bcsel = {
383 641 {NIR_TYPE_BOOL1,NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_BOOL1,NIR_TYPE_UINT,NIR_TYPE_UINT},
384 642 0 0
385 643 }; };
644 static struct nir_op nir_b8csel = {
645 "b8csel",
646 NIR_OP_TYPE_ALU,
647 0,
648 NIR_TYPE_UINT,
649 3,
650 {0,0,0},
651 {NIR_TYPE_BOOL8,NIR_TYPE_UINT,NIR_TYPE_UINT},
652 0
653 };
654 static struct nir_op nir_b16csel = {
655 "b16csel",
656 NIR_OP_TYPE_ALU,
657 0,
658 NIR_TYPE_UINT,
659 3,
660 {0,0,0},
661 {NIR_TYPE_BOOL16,NIR_TYPE_UINT,NIR_TYPE_UINT},
662 0
663 };
664 static struct nir_op nir_b32csel = {
665 "b32csel",
666 NIR_OP_TYPE_ALU,
667 0,
668 NIR_TYPE_UINT,
669 3,
670 {0,0,0},
671 {NIR_TYPE_BOOL32,NIR_TYPE_UINT,NIR_TYPE_UINT},
672 0
673 };
674 /* b[1,8,16,32]csel */
675 /*============================================================================*/
386 676 static struct nir_op nir_bfi = { static struct nir_op nir_bfi = {
387 677 "bfi", "bfi",
388 678 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_extract_u8 = {
493 783 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
494 784 0 0
495 785 }; };
786 /*----------------------------------------------------------------------------*/
496 787 static struct nir_op nir_f2b1 = { static struct nir_op nir_f2b1 = {
497 788 "f2b1", "f2b1",
498 789 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_f2b1 = {
503 794 {NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT},
504 795 0 0
505 796 }; };
797 static struct nir_op nir_f2b8 = {
798 "f2b8",
799 NIR_OP_TYPE_ALU,
800 0,
801 NIR_TYPE_BOOL8,
802 1,
803 {0},
804 {NIR_TYPE_FLOAT},
805 0
806 };
807 static struct nir_op nir_f2b16 = {
808 "f2b16",
809 NIR_OP_TYPE_ALU,
810 0,
811 NIR_TYPE_BOOL32,
812 1,
813 {0},
814 {NIR_TYPE_FLOAT},
815 0
816 };
506 817 static struct nir_op nir_f2b32 = { static struct nir_op nir_f2b32 = {
507 818 "f2b32", "f2b32",
508 819 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_f2b32 = {
513 824 {NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT},
514 825 0 0
515 826 }; };
827 /*----------------------------------------------------------------------------*/
516 828 static struct nir_op nir_f2f16 = { static struct nir_op nir_f2f16 = {
517 829 "f2f16", "f2f16",
518 830 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fdph_replicated = {
923 1235 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
924 1236 0 0
925 1237 }; };
1238 /*---------------------------------------------------------------------------*/
926 1239 static struct nir_op nir_feq = { static struct nir_op nir_feq = {
927 1240 "feq", "feq",
928 1241 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_feq = {
933 1246 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
934 1247 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
935 1248 }; };
1249 static struct nir_op nir_feq8 = {
1250 "feq8",
1251 NIR_OP_TYPE_ALU,
1252 0,
1253 NIR_TYPE_BOOL8,
1254 2,
1255 {0,0},
1256 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1257 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1258 };
1259 static struct nir_op nir_feq16 = {
1260 "feq16",
1261 NIR_OP_TYPE_ALU,
1262 0,
1263 NIR_TYPE_BOOL16,
1264 2,
1265 {0,0},
1266 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1267 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1268 };
936 1269 static struct nir_op nir_feq32 = { static struct nir_op nir_feq32 = {
937 1270 "feq32", "feq32",
938 1271 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_feq32 = {
943 1276 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
944 1277 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
945 1278 }; };
1279 /*---------------------------------------------------------------------------*/
946 1280 static struct nir_op nir_fexp2 = { static struct nir_op nir_fexp2 = {
947 1281 "fexp2", "fexp2",
948 1282 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ffract = {
983 1317 {NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT},
984 1318 0 0
985 1319 }; };
1320 /*----------------------------------------------------------------------------*/
986 1321 static struct nir_op nir_fge = { static struct nir_op nir_fge = {
987 1322 "fge", "fge",
988 1323 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fge = {
993 1328 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
994 1329 0 0
995 1330 }; };
1331 static struct nir_op nir_fge8 = {
1332 "fge8",
1333 NIR_OP_TYPE_ALU,
1334 0,
1335 NIR_TYPE_BOOL8,
1336 2,
1337 {0,0},
1338 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1339 0
1340 };
1341 static struct nir_op nir_fge16 = {
1342 "fge16",
1343 NIR_OP_TYPE_ALU,
1344 0,
1345 NIR_TYPE_BOOL16,
1346 2,
1347 {0,0},
1348 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1349 0
1350 };
996 1351 static struct nir_op nir_fge32 = { static struct nir_op nir_fge32 = {
997 1352 "fge32", "fge32",
998 1353 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fge32 = {
1003 1358 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1004 1359 0 0
1005 1360 }; };
1361 /*----------------------------------------------------------------------------*/
1006 1362 static struct nir_op nir_find_lsb = { static struct nir_op nir_find_lsb = {
1007 1363 "find_lsb", "find_lsb",
1008 1364 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_flrp = {
1033 1389 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1034 1390 0 0
1035 1391 }; };
1392 /*----------------------------------------------------------------------------*/
1036 1393 static struct nir_op nir_flt = { static struct nir_op nir_flt = {
1037 1394 "flt", "flt",
1038 1395 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_flt = {
1043 1400 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1044 1401 0 0
1045 1402 }; };
1403 static struct nir_op nir_flt8 = {
1404 "flt8",
1405 NIR_OP_TYPE_ALU,
1406 0,
1407 NIR_TYPE_BOOL8,
1408 2,
1409 {0,0},
1410 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1411 0
1412 };
1413 static struct nir_op nir_flt16 = {
1414 "flt16",
1415 NIR_OP_TYPE_ALU,
1416 0,
1417 NIR_TYPE_BOOL16,
1418 2,
1419 {0,0},
1420 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1421 0
1422 };
1046 1423 static struct nir_op nir_flt32 = { static struct nir_op nir_flt32 = {
1047 1424 "flt32", "flt32",
1048 1425 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_flt32 = {
1053 1430 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1054 1431 0 0
1055 1432 }; };
1433 /*----------------------------------------------------------------------------*/
1056 1434 static struct nir_op nir_fmax = { static struct nir_op nir_fmax = {
1057 1435 "fmax", "fmax",
1058 1436 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fmul = {
1123 1501 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1124 1502 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE | NIR_OP_ALGEBRAIC_PROPERTIES_ASSOCIATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE | NIR_OP_ALGEBRAIC_PROPERTIES_ASSOCIATIVE
1125 1503 }; };
1504 /*----------------------------------------------------------------------------*/
1126 1505 static struct nir_op nir_fne = { static struct nir_op nir_fne = {
1127 1506 "fne", "fne",
1128 1507 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fne = {
1133 1512 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1134 1513 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1135 1514 }; };
1515 static struct nir_op nir_fne8 = {
1516 "fne8",
1517 NIR_OP_TYPE_ALU,
1518 0,
1519 NIR_TYPE_BOOL8,
1520 2,
1521 {0,0},
1522 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1523 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1524 };
1525 static struct nir_op nir_fne16 = {
1526 "fne16",
1527 NIR_OP_TYPE_ALU,
1528 0,
1529 NIR_TYPE_BOOL16,
1530 2,
1531 {0,0},
1532 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1533 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1534 };
1136 1535 static struct nir_op nir_fne32 = { static struct nir_op nir_fne32 = {
1137 1536 "fne32", "fne32",
1138 1537 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_fne32 = {
1143 1542 {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT,NIR_TYPE_FLOAT},
1144 1543 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1145 1544 }; };
1545 /*----------------------------------------------------------------------------*/
1146 1546 static struct nir_op nir_fneg = { static struct nir_op nir_fneg = {
1147 1547 "fneg", "fneg",
1148 1548 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ftrunc = {
1454 1854 {NIR_TYPE_FLOAT}, {NIR_TYPE_FLOAT},
1455 1855 0 0
1456 1856 }; };
1857 /*----------------------------------------------------------------------------*/
1457 1858 static struct nir_op nir_i2b1 = { static struct nir_op nir_i2b1 = {
1458 1859 "i2b1", "i2b1",
1459 1860 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_i2b1 = {
1464 1865 {NIR_TYPE_INT}, {NIR_TYPE_INT},
1465 1866 0 0
1466 1867 }; };
1868 static struct nir_op nir_i2b8 = {
1869 "i2b8",
1870 NIR_OP_TYPE_ALU,
1871 0,
1872 NIR_TYPE_BOOL8,
1873 1,
1874 {0},
1875 {NIR_TYPE_INT},
1876 0
1877 };
1878 static struct nir_op nir_i2b16 = {
1879 "i2b16",
1880 NIR_OP_TYPE_ALU,
1881 0,
1882 NIR_TYPE_BOOL16,
1883 1,
1884 {0},
1885 {NIR_TYPE_INT},
1886 0
1887 };
1467 1888 static struct nir_op nir_i2b32 = { static struct nir_op nir_i2b32 = {
1468 1889 "i2b32", "i2b32",
1469 1890 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_i2b32 = {
1474 1895 {NIR_TYPE_INT}, {NIR_TYPE_INT},
1475 1896 0 0
1476 1897 }; };
1898 /*----------------------------------------------------------------------------*/
1477 1899 static struct nir_op nir_i2f16 = { static struct nir_op nir_i2f16 = {
1478 1900 "i2f16", "i2f16",
1479 1901 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_idiv = {
1625 2047 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1626 2048 0 0
1627 2049 }; };
2050 /*----------------------------------------------------------------------------*/
1628 2051 static struct nir_op nir_ieq = { static struct nir_op nir_ieq = {
1629 2052 "ieq", "ieq",
1630 2053 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ieq = {
1635 2058 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1636 2059 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1637 2060 }; };
2061 static struct nir_op nir_ieq8 = {
2062 "ieq8",
2063 NIR_OP_TYPE_ALU,
2064 0,
2065 NIR_TYPE_BOOL8,
2066 2,
2067 {0,0},
2068 {NIR_TYPE_INT,NIR_TYPE_INT},
2069 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
2070 };
2071 static struct nir_op nir_ieq16 = {
2072 "ieq16",
2073 NIR_OP_TYPE_ALU,
2074 0,
2075 NIR_TYPE_BOOL16,
2076 2,
2077 {0,0},
2078 {NIR_TYPE_INT,NIR_TYPE_INT},
2079 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
2080 };
1638 2081 static struct nir_op nir_ieq32 = { static struct nir_op nir_ieq32 = {
1639 2082 "ieq32", "ieq32",
1640 2083 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ieq32 = {
1645 2088 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1646 2089 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1647 2090 }; };
2091 /*----------------------------------------------------------------------------*/
1648 2092 static struct nir_op nir_ifind_msb = { static struct nir_op nir_ifind_msb = {
1649 2093 "ifind_msb", "ifind_msb",
1650 2094 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ifind_msb = {
1655 2099 NIR_TYPE_INT32, NIR_TYPE_INT32,
1656 2100 0 0
1657 2101 }; };
2102 /*----------------------------------------------------------------------------*/
1658 2103 static struct nir_op nir_ige = { static struct nir_op nir_ige = {
1659 2104 "ige", "ige",
1660 2105 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ige = {
1665 2110 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1666 2111 0 0
1667 2112 }; };
2113 static struct nir_op nir_ige8 = {
2114 "ige8",
2115 NIR_OP_TYPE_ALU,
2116 0,
2117 NIR_TYPE_BOOL8,
2118 2,
2119 {0,0},
2120 {NIR_TYPE_INT,NIR_TYPE_INT},
2121 0
2122 };
2123 static struct nir_op nir_ige16 = {
2124 "ige16",
2125 NIR_OP_TYPE_ALU,
2126 0,
2127 NIR_TYPE_BOOL16,
2128 2,
2129 {0,0},
2130 {NIR_TYPE_INT,NIR_TYPE_INT},
2131 0
2132 };
1668 2133 static struct nir_op nir_ige32 = { static struct nir_op nir_ige32 = {
1669 2134 "ige32", "ige32",
1670 2135 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ige32 = {
1675 2140 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1676 2141 0 0
1677 2142 }; };
2143 /*----------------------------------------------------------------------------*/
1678 2144 static struct nir_op nir_ihadd = { static struct nir_op nir_ihadd = {
1679 2145 "ihadd", "ihadd",
1680 2146 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ihadd = {
1685 2151 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1686 2152 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1687 2153 }; };
2154 /*----------------------------------------------------------------------------*/
1688 2155 static struct nir_op nir_ilt = { static struct nir_op nir_ilt = {
1689 2156 "ilt", "ilt",
1690 2157 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ilt = {
1695 2162 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1696 2163 0 0
1697 2164 }; };
2165 static struct nir_op nir_ilt8 = {
2166 "ilt8",
2167 NIR_OP_TYPE_ALU,
2168 0,
2169 NIR_TYPE_BOOL8,
2170 2,
2171 {0,0},
2172 {NIR_TYPE_INT,NIR_TYPE_INT},
2173 0
2174 };
2175 static struct nir_op nir_ilt16 = {
2176 "ilt16",
2177 NIR_OP_TYPE_ALU,
2178 0,
2179 NIR_TYPE_BOOL16,
2180 2,
2181 {0,0},
2182 {NIR_TYPE_INT,NIR_TYPE_INT},
2183 0
2184 };
1698 2185 static struct nir_op nir_ilt32 = { static struct nir_op nir_ilt32 = {
1699 2186 "ilt32", "ilt32",
1700 2187 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ilt32 = {
1705 2192 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1706 2193 0 0
1707 2194 }; };
2195 /*----------------------------------------------------------------------------*/
1708 2196 static struct nir_op nir_imax = { static struct nir_op nir_imax = {
1709 2197 "imax", "imax",
1710 2198 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_imul_high = {
1795 2283 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1796 2284 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1797 2285 }; };
2286 /*----------------------------------------------------------------------------*/
1798 2287 static struct nir_op nir_ine = { static struct nir_op nir_ine = {
1799 2288 "ine", "ine",
1800 2289 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ine = {
1805 2294 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1806 2295 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1807 2296 }; };
2297 static struct nir_op nir_ine8 = {
2298 "ine8",
2299 NIR_OP_TYPE_ALU,
2300 0,
2301 NIR_TYPE_BOOL8,
2302 2,
2303 {0,0},
2304 {NIR_TYPE_INT,NIR_TYPE_INT},
2305 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
2306 };
2307 static struct nir_op nir_ine16 = {
2308 "ine16",
2309 NIR_OP_TYPE_ALU,
2310 0,
2311 NIR_TYPE_BOOL16,
2312 2,
2313 {0,0},
2314 {NIR_TYPE_INT,NIR_TYPE_INT},
2315 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
2316 };
1808 2317 static struct nir_op nir_ine32 = { static struct nir_op nir_ine32 = {
1809 2318 "ine32", "ine32",
1810 2319 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ine32 = {
1815 2324 {NIR_TYPE_INT,NIR_TYPE_INT}, {NIR_TYPE_INT,NIR_TYPE_INT},
1816 2325 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
1817 2326 }; };
2327 /*----------------------------------------------------------------------------*/
1818 2328 static struct nir_op nir_ineg = { static struct nir_op nir_ineg = {
1819 2329 "ineg", "ineg",
1820 2330 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ufind_msb = {
2255 2765 {NIR_TYPE_UINT}, {NIR_TYPE_UINT},
2256 2766 0 0
2257 2767 }; };
2768 /*---------------------------------------------------------------------------*/
2258 2769 static struct nir_op nir_uge = { static struct nir_op nir_uge = {
2259 2770 "uge", "uge",
2260 2771 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_uge = {
2265 2776 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
2266 2777 0 0
2267 2778 }; };
2779 static struct nir_op nir_uge8 = {
2780 "uge8",
2781 NIR_OP_TYPE_ALU,
2782 0,
2783 NIR_TYPE_BOOL8,
2784 2,
2785 {0,0},
2786 {NIR_TYPE_UINT,NIR_TYPE_UINT},
2787 0
2788 };
2789 static struct nir_op nir_uge16 = {
2790 "uge16",
2791 NIR_OP_TYPE_ALU,
2792 0,
2793 NIR_TYPE_BOOL16,
2794 2,
2795 {0,0},
2796 {NIR_TYPE_UINT,NIR_TYPE_UINT},
2797 0
2798 };
2268 2799 static struct nir_op nir_uge32 = { static struct nir_op nir_uge32 = {
2269 2800 "uge32", "uge32",
2270 2801 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_uge32 = {
2275 2806 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
2276 2807 0 0
2277 2808 }; };
2809 /*---------------------------------------------------------------------------*/
2278 2810 static struct nir_op nir_uhadd = { static struct nir_op nir_uhadd = {
2279 2811 "uhadd", "uhadd",
2280 2812 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_uhadd = {
2285 2817 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
2286 2818 NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE NIR_OP_ALGEBRAIC_PROPERTIES_2SRC_COMMUTATIVE
2287 2819 }; };
2820 /*---------------------------------------------------------------------------*/
2288 2821 static struct nir_op nir_ult = { static struct nir_op nir_ult = {
2289 2822 "ult", "ult",
2290 2823 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ult = {
2295 2828 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
2296 2829 0 0
2297 2830 }; };
2831 static struct nir_op nir_ult8 = {
2832 "ult8",
2833 NIR_OP_TYPE_ALU,
2834 0,
2835 NIR_TYPE_BOOL8,
2836 2,
2837 {0,0},
2838 {NIR_TYPE_UINT,NIR_TYPE_UINT},
2839 0
2840 };
2841 static struct nir_op nir_ult16 = {
2842 "ult16",
2843 NIR_OP_TYPE_ALU,
2844 0,
2845 NIR_TYPE_BOOL16,
2846 2,
2847 {0,0},
2848 {NIR_TYPE_UINT,NIR_TYPE_UINT},
2849 0
2850 };
2298 2851 static struct nir_op nir_ult32 = { static struct nir_op nir_ult32 = {
2299 2852 "ult32", "ult32",
2300 2853 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op nir_ult32 = {
2305 2858 {NIR_TYPE_UINT,NIR_TYPE_UINT}, {NIR_TYPE_UINT,NIR_TYPE_UINT},
2306 2859 0 0
2307 2860 }; };
2861 /*---------------------------------------------------------------------------*/
2308 2862 static struct nir_op nir_umax = { static struct nir_op nir_umax = {
2309 2863 "umax", "umax",
2310 2864 NIR_OP_TYPE_ALU, NIR_OP_TYPE_ALU,
 
... ... static struct nir_op *nir_ops[] = {
2858 3412 &nir_extract_u16, &nir_extract_u16,
2859 3413 &nir_extract_u8, &nir_extract_u8,
2860 3414 &nir_f2b1, &nir_f2b1,
3415 &nir_f2b8,
3416 &nir_f2b16,
2861 3417 &nir_f2b32, &nir_f2b32,
2862 3418 &nir_f2f16, &nir_f2f16,
2863 3419 &nir_f2f16_rtne, &nir_f2f16_rtne,
 
... ... static struct nir_op *nir_ops[] = {
2959 3515 /*---------*/ /*---------*/
2960 3516 &nir_ftrunc, &nir_ftrunc,
2961 3517 &nir_i2b1, &nir_i2b1,
3518 &nir_i2b8,
3519 &nir_i2b16,
2962 3520 &nir_i2b32, &nir_i2b32,
2963 3521 &nir_i2f16, &nir_i2f16,
2964 3522 &nir_i2f32, &nir_i2f32,
 
... ... static struct nir_op *nir_ops[] = {
3094 3652 &nir_amul, &nir_amul,
3095 3653 /* git 35e92a11ddb1450571afc2d66286b97098d486a1..4c9b9ed5f9c83d97ce6ec37c0dd5bfed53f913dc */ /* git 35e92a11ddb1450571afc2d66286b97098d486a1..4c9b9ed5f9c83d97ce6ec37c0dd5bfed53f913dc */
3096 3654 &nir_imad24_ir3, &nir_imad24_ir3,
3097 &nir_imul24
3655 &nir_imul24,
3656 /* git ef9635d0bce9383a22bb3a8506da4d55726e5d59..a2689ebcd68ccf9b3bcbf9bae926c70beccd6a11 */
3657 &nir_flt8,
3658 &nir_flt16,
3659 &nir_fge8,
3660 &nir_fge16,
3661 &nir_feq8,
3662 &nir_feq16,
3663 &nir_fne8,
3664 &nir_fne16,
3665 &nir_ilt8,
3666 &nir_ilt16,
3667 &nir_ige8,
3668 &nir_ige16,
3669 &nir_ieq8,
3670 &nir_ieq16,
3671 &nir_ine8,
3672 &nir_ine16,
3673 &nir_ult8,
3674 &nir_ult16,
3675 &nir_uge8,
3676 &nir_uge16,
3677 &nir_b8all_fequal2,
3678 &nir_b8all_fequal3,
3679 &nir_b8all_fequal4,
3680 &nir_b16all_fequal2,
3681 &nir_b16all_fequal3,
3682 &nir_b16all_fequal4,
3683 &nir_b8any_fnequal2,
3684 &nir_b8any_fnequal3,
3685 &nir_b8any_fnequal4,
3686 &nir_b16any_fnequal2,
3687 &nir_b16any_fnequal3,
3688 &nir_b16any_fnequal4,
3689 &nir_b8all_iequal2,
3690 &nir_b8all_iequal3,
3691 &nir_b8all_iequal4,
3692 &nir_b16all_iequal2,
3693 &nir_b16all_iequal3,
3694 &nir_b16all_iequal4,
3695 &nir_b8any_inequal2,
3696 &nir_b8any_inequal3,
3697 &nir_b8any_inequal4,
3698 &nir_b16any_inequal2,
3699 &nir_b16any_inequal3,
3700 &nir_b16any_inequal4,
3701 &nir_b8csel,
3702 &nir_b16csel
3098 3703 }; };
File builders/mesa-vulkan-1/contrib/generators/nir/nir_opcodes_c.c changed (mode: 100644) (index ee09d08..4a0a892)
... ... static u8 type_bits_n_n[ALU_TYPES_N] = {
71 71 5, /* int */ 5, /* int */
72 72 5, /* uint */ 5, /* uint */
73 73 3, /* float */ 3, /* float */
74 2, /* bool */
74 4, /* bool */
75 75 }; };
76 76 #define TYPE_BITS_N_N_MAX 5 #define TYPE_BITS_N_N_MAX 5
77 77
 
... ... static u8 type_bits_n[ALU_TYPES_N][TYPE_BITS_N_N_MAX] = {
80 80 { 1, 8, 16, 32 , 64}, /* int */ { 1, 8, 16, 32 , 64}, /* int */
81 81 { 1, 8, 16, 32 , 64}, /* uint */ { 1, 8, 16, 32 , 64}, /* uint */
82 82 { 16, 32 , 64}, /* float */ { 16, 32 , 64}, /* float */
83 { 1, 32}, /* bool */
83 { 1, 8, 16, 32}, /* bool */
84 84 }; };
85 85
86 86 static char *rnds_strs[3][2] = { static char *rnds_strs[3][2] = {
 
... ... static char *nir_type_str(u8 nir_type)
311 311 switch (nir_type) { switch (nir_type) {
312 312 case NIR_TYPE_BOOL: return "nir_type_bool"; case NIR_TYPE_BOOL: return "nir_type_bool";
313 313 case NIR_TYPE_BOOL1: return "nir_type_bool1"; case NIR_TYPE_BOOL1: return "nir_type_bool1";
314 case NIR_TYPE_BOOL8: return "nir_type_bool8";
315 case NIR_TYPE_BOOL16: return "nir_type_bool16";
314 316 case NIR_TYPE_BOOL32: return "nir_type_bool32"; case NIR_TYPE_BOOL32: return "nir_type_bool32";
315 317 case NIR_TYPE_INT: return "nir_type_int"; case NIR_TYPE_INT: return "nir_type_int";
316 318 case NIR_TYPE_INT1: return "nir_type_int1"; case NIR_TYPE_INT1: return "nir_type_int1";
File builders/mesa-vulkan-1/contrib/x86_64_amdgpu_linux_gnu_vulkan_x11_drm_gcc.sh changed (mode: 100755) (index 1bb30ed..507d806)
... ... fi
112 112 # USE_GCC_ATOMIC_BUILTINS # USE_GCC_ATOMIC_BUILTINS
113 113 # enable the use of gcc built-ins for atomic operations in # enable the use of gcc built-ins for atomic operations in
114 114 # src/util/u_atomic.h # src/util/u_atomic.h
115 # HAVE_DLADDR:
116 # glibc dladdr mandatory for disk cache in utils
115 117 # HAVE_STRTOF: # HAVE_STRTOF:
116 118 # glibc provides strtof function, used in src/util/strtod.c # glibc provides strtof function, used in src/util/strtod.c
117 119 # HAVE_TIMESPEC_GET: # HAVE_TIMESPEC_GET:
 
... ... fi
177 179 # - HAVE_FUNC_ATTRIBUTE_VISIBILITY=1, enable the gcc visibilty attribute # - HAVE_FUNC_ATTRIBUTE_VISIBILITY=1, enable the gcc visibilty attribute
178 180 # only in mapi entry headers # only in mapi entry headers
179 181 # - MAJOR_IN_SYSMACROS=1, used in various parts of mesa, but no vulkan parts # - MAJOR_IN_SYSMACROS=1, used in various parts of mesa, but no vulkan parts
180 # - HAVE_DLADDR=1, used in the dri mega driver
181 182 # - HAVE_CLOCK_GETTIME=1, autoconf macro switch, used nowhere # - HAVE_CLOCK_GETTIME=1, autoconf macro switch, used nowhere
182 183 # - HAVE_PTHREAD_PRIO_INHERIT=1, m4 defined macro, used nowhere # - HAVE_PTHREAD_PRIO_INHERIT=1, m4 defined macro, used nowhere
183 184 # - USE_SSE41, enable ssee41 code paths in dri intel 965, and mesa vbo # - USE_SSE41, enable ssee41 code paths in dri intel 965, and mesa vbo
 
... ... linux_glibc_cppflags="\
235 236 -DHAVE_LINUX_FUTEX_H \ -DHAVE_LINUX_FUTEX_H \
236 237 -DHAVE_ENDIAN_H=1 \ -DHAVE_ENDIAN_H=1 \
237 238 -DHAVE_PROGRAM_INVOCATION_NAME=1 \ -DHAVE_PROGRAM_INVOCATION_NAME=1 \
239 -DHAVE_DLADDR=1 \
238 240 " "
239 241 mesa_cppflags="\ mesa_cppflags="\
240 242 -DNDEBUG \ -DNDEBUG \
 
... ... $cc $cppflags $src_dir/src/vulkan/util/vk_debug_report.c \
661 663 -o $build_dir/vk_debug_report.o & -o $build_dir/vk_debug_report.o &
662 664 $cc $cppflags $src_dir/src/vulkan/util/vk_util.c \ $cc $cppflags $src_dir/src/vulkan/util/vk_util.c \
663 665 -o $build_dir/vk_util.o & -o $build_dir/vk_util.o &
666 # $src_dir/src/vulkan/util/vk_format.c deprecated
664 667 #------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
665 668 $cc $cppflags $build_dir/vk_enum_to_str.c \ $cc $cppflags $build_dir/vk_enum_to_str.c \
666 669 -o $build_dir/vk_enum_to_str.o & -o $build_dir/vk_enum_to_str.o &
 
... ... $llvm_cppflags \
792 795
793 796 libamd_common_c_files="\ libamd_common_c_files="\
794 797 $src_dir/src/amd/common/ac_gpu_info.c \ $src_dir/src/amd/common/ac_gpu_info.c \
798 $src_dir/src/amd/common/ac_shader_args.c \
795 799 $src_dir/src/amd/common/ac_surface.c \ $src_dir/src/amd/common/ac_surface.c \
796 800 $src_dir/src/amd/common/ac_binary.c \ $src_dir/src/amd/common/ac_binary.c \
797 801 $src_dir/src/amd/common/ac_shader_util.c \ $src_dir/src/amd/common/ac_shader_util.c \
 
... ... $src_dir/src/compiler/nir/nir_opt_idiv_const.c \
1123 1127 $src_dir/src/compiler/nir/nir_opt_if.c \ $src_dir/src/compiler/nir/nir_opt_if.c \
1124 1128 $src_dir/src/compiler/nir/nir_opt_intrinsics.c \ $src_dir/src/compiler/nir/nir_opt_intrinsics.c \
1125 1129 $src_dir/src/compiler/nir/nir_opt_large_constants.c \ $src_dir/src/compiler/nir/nir_opt_large_constants.c \
1130 $src_dir/src/compiler/nir/nir_opt_load_store_vectorize.c \
1126 1131 $src_dir/src/compiler/nir/nir_opt_loop_unroll.c \ $src_dir/src/compiler/nir/nir_opt_loop_unroll.c \
1127 1132 $src_dir/src/compiler/nir/nir_opt_move.c \ $src_dir/src/compiler/nir/nir_opt_move.c \
1128 1133 $src_dir/src/compiler/nir/nir_opt_peephole_select.c \ $src_dir/src/compiler/nir/nir_opt_peephole_select.c \
 
... ... $src_dir/src/compiler/nir/nir_propagate_invariant.c \
1138 1143 $src_dir/src/compiler/nir/nir_range_analysis.c \ $src_dir/src/compiler/nir/nir_range_analysis.c \
1139 1144 $src_dir/src/compiler/nir/nir_remove_dead_variables.c \ $src_dir/src/compiler/nir/nir_remove_dead_variables.c \
1140 1145 $src_dir/src/compiler/nir/nir_repair_ssa.c \ $src_dir/src/compiler/nir/nir_repair_ssa.c \
1146 $src_dir/src/compiler/nir/nir_schedule.c \
1141 1147 $src_dir/src/compiler/nir/nir_search.c \ $src_dir/src/compiler/nir/nir_search.c \
1142 1148 $src_dir/src/compiler/nir/nir_serialize.c \ $src_dir/src/compiler/nir/nir_serialize.c \
1143 1149 $src_dir/src/compiler/nir/nir_split_per_member_structs.c \ $src_dir/src/compiler/nir/nir_split_per_member_structs.c \
1144 1150 $src_dir/src/compiler/nir/nir_split_var_copies.c \ $src_dir/src/compiler/nir/nir_split_var_copies.c \
1145 1151 $src_dir/src/compiler/nir/nir_split_vars.c \ $src_dir/src/compiler/nir/nir_split_vars.c \
1146 $src_dir/src/compiler/nir/nir_strip.c \
1147 1152 $src_dir/src/compiler/nir/nir_sweep.c \ $src_dir/src/compiler/nir/nir_sweep.c \
1148 1153 $src_dir/src/compiler/nir/nir_to_lcssa.c \ $src_dir/src/compiler/nir/nir_to_lcssa.c \
1149 1154 $src_dir/src/compiler/nir/nir_validate.c \ $src_dir/src/compiler/nir/nir_validate.c \
 
... ... $cppflags_common \
1355 1360 -DPACKAGE_VERSION=\"$version\" \ -DPACKAGE_VERSION=\"$version\" \
1356 1361 -I$build_dir/src/util \ -I$build_dir/src/util \
1357 1362 -I$build_dir \ -I$build_dir \
1358 -I$src_dir/src/gallium/auxiliary \
1359 -I$src_dir/src/gallium/include \
1360 -I$src_dir/src/vulkan/util \
1361 -I$src_dir/src/vulkan/wsi \
1362 1363 -I$src_dir/src/amd/compiler \ -I$src_dir/src/amd/compiler \
1363 1364 -I$src_dir/src/amd/llvm \ -I$src_dir/src/amd/llvm \
1364 1365 -I$src_dir/src/amd/common \ -I$src_dir/src/amd/common \
1365 1366 -I$src_dir/src/amd/vulkan \ -I$src_dir/src/amd/vulkan \
1366 1367 -I$src_dir/src/amd \ -I$src_dir/src/amd \
1368 -I$src_dir/src/gallium/auxiliary \
1369 -I$src_dir/src/gallium/include \
1370 -I$src_dir/src/vulkan/util \
1371 -I$src_dir/src/vulkan/wsi \
1367 1372 -I$src_dir/src/mesa \ -I$src_dir/src/mesa \
1368 1373 -I$src_dir/src/compiler/nir \ -I$src_dir/src/compiler/nir \
1369 1374 -I$src_dir/src/compiler \ -I$src_dir/src/compiler \
 
... ... $src_dir/src/amd/vulkan/radv_pass.c \
1407 1412 $src_dir/src/amd/vulkan/radv_pipeline.c \ $src_dir/src/amd/vulkan/radv_pipeline.c \
1408 1413 $src_dir/src/amd/vulkan/radv_pipeline_cache.c \ $src_dir/src/amd/vulkan/radv_pipeline_cache.c \
1409 1414 $src_dir/src/amd/vulkan/radv_shader.c \ $src_dir/src/amd/vulkan/radv_shader.c \
1415 $src_dir/src/amd/vulkan/radv_shader_args.c \
1410 1416 $src_dir/src/amd/vulkan/radv_shader_info.c \ $src_dir/src/amd/vulkan/radv_shader_info.c \
1411 1417 $src_dir/src/amd/vulkan/radv_query.c \ $src_dir/src/amd/vulkan/radv_query.c \
1412 1418 $src_dir/src/amd/vulkan/radv_util.c \ $src_dir/src/amd/vulkan/radv_util.c \
File builders/mplayer-1/builder.sh changed (mode: 100644) (index ed8ae1c..793cfd7)
1 1 src_name=mplayer src_name=mplayer
2 date=2019-11-18
2 date=2019-12-01
3 3 archive_name=$src_name-export-snapshot.tar.bz2 archive_name=$src_name-export-snapshot.tar.bz2
4 4 url0=http://www.mplayerhq.hu/MPlayer/releases/$archive_name url0=http://www.mplayerhq.hu/MPlayer/releases/$archive_name
5 ffmpeg_git_commit=f897d8c863c54acbe15f3149ca0d6b774fab2cf5
5 ffmpeg_git_commit=637742b45dc8df329b8593f6ad8f4e154d609415
6 6
7 7 src_dir=$src_dir_root/$src_name-export-$date src_dir=$src_dir_root/$src_name-export-$date
8 8 cd $src_dir_root cd $src_dir_root
File builders/xserver-1/builder.sh changed (mode: 100644) (index 4ff8ba6..ed8d840)
1 1 src_name=xserver src_name=xserver
2 git_commit=5c7c6d5cffa98e4749185af9211d7642b57673d8
2 git_commit=cd999f08c608458d6207110ed237c3a78441870b
3 3 git_url0=git://anongit.freedesktop.org/xorg/$src_name git_url0=git://anongit.freedesktop.org/xorg/$src_name
4 4
5 5 src_dir=$src_dir_root/$src_name src_dir=$src_dir_root/$src_name
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyanlinux

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyanlinux

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyanlinux

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main