<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [regression][bisected] Build fails with nir_load_sample_id_no_per_sample being undefined"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107629">107629</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[regression][bisected] Build fails with nir_load_sample_id_no_per_sample being undefined
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Hi-Angel@yandex.ru
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Build fails with the following errors:
[77/1193] Compiling C object
'src/compiler/nir/src@compiler@nir@@nir@sta/meson-generated_.._nir_intrinsics.c.o'.
src/compiler/nir/nir_intrinsics.c:2039:1: warning: excess elements in
array initializer
{
^
src/compiler/nir/nir_intrinsics.c:2039:1: note: (near initialization
for ‘nir_intrinsic_infos’)
[123/1193] Compiling C object
'src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_system_values.c.o'.
FAILED:
src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_system_values.c.o
cc -Isrc/compiler/nir/src@compiler@nir@@nir@sta -Isrc/compiler/nir
-I../mesa/src/compiler/nir -Isrc/../include -I../mesa/src/../include -Isrc
-I../mesa/src -Isrc/mapi -I../mesa/src/mapi -Isrc/mesa -I../mesa/src/mesa
-I../mesa/src/gallium/include -Isrc/gallium/auxiliary
-I../mesa/src/gallium/auxiliary -Isrc/compiler -I../mesa/src/compiler
-Isrc/compiler/nir/../spirv -I../mesa/src/compiler/nir/../spirv
-Isrc/compiler/spirv -fdiagnostics-color=always -DNDEBUG -pipe
-D_FILE_OFFSET_BITS=64 -std=c99 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS '-DVERSION="18.2.0-devel"' -DPACKAGE_VERSION=VERSION
'-DPACKAGE_BUGREPORT="<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a>"'
-DGLX_USE_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=1
-DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM
-DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32
-DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL
-DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS
-DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL
-DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY
-DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -D_GNU_SOURCE
-DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS
-DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_STRTOF
-DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE
-DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_PTHREAD
-DHAVE_LIBDRM -DHAVE_LLVM=0x0800 -DMESA_LLVM_VERSION_PATCH=0 -DUSE_LIBGLVND=1
-DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS
-DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -Wall
-Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-math-errno -fno-trapping-math -Wno-missing-field-initializers
-march=native -O3 -fno-stack-protector -fweb -fno-semantic-interposition
-fmerge-all-constants -floop-nest-optimize -fPIC -fvisibility=hidden
-Werror=pointer-arith -Werror=vla -Wno-override-init -MD -MQ
'src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_system_values.c.o' -MF
'src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_system_values.c.o.d' -o
'src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_system_values.c.o' -c
../mesa/src/compiler/nir/nir_lower_system_values.c
../mesa/src/compiler/nir/nir_lower_system_values.c: In function
‘convert_block’:
../mesa/src/compiler/nir/nir_lower_system_values.c:153:28: error:
implicit declaration of function ‘nir_load_sample_id_no_per_sample’; did you
mean ‘nir_load_sample_pos’? [-Werror=implicit-function-declaration]
nir_load_sample_id_no_per_sample(b));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nir_load_sample_pos
../mesa/src/compiler/nir/nir_lower_system_values.c:153:28: warning:
passing argument 3 of ‘nir_ishl’ makes pointer from integer without a cast
[-Wint-conversion]
nir_load_sample_id_no_per_sample(b));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../mesa/src/compiler/nir/nir_builder.h:379,
from
../mesa/src/compiler/nir/nir_lower_system_values.c:29:
../mesa/src/compiler/nir/nir_builder_opcodes.h:789:62: note: expected
‘nir_ssa_def *’ {aka ‘struct nir_ssa_def *’} but argument is of type ‘int’
nir_ishl(nir_builder *build, nir_ssa_def *src0, nir_ssa_def *src1)
~~~~~~~~~~~~~^~~~
cc1: some warnings being treated as errors
[128/1193] Compiling C object
'src/compiler/nir/src@compiler@nir@@nir@sta/nir_lower_tex.c.o'.
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
# Bisected commit:
8dfc9e22c12ff840510d876b09d7f7163256bb17 is the first bad commit
commit 8dfc9e22c12ff840510d876b09d7f7163256bb17
Author: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>>
Date: Fri Jun 1 14:07:15 2018 -0400
nir: add lowering for gl_HelperInvocation
v2: reword comment about lower_helper_invocations to be more clear
that it might not work on all hardware
v3: add special variant of load_sample_id which does not imply per-
sample shading
Signed-off-by: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>>
:040000 040000 ddb9c228e9f22d020ec2a1eb20b46803187a6ea0
55e9ca1c8d04a1e157697a94576dfbec8c140db2 M src
# Steps to reproduce
Build with the following commands:
meson setup mesa _build \
-D b_ndebug=true \
-D buildtype=plain \
--wrap-mode=nofallback \
-D prefix=/usr \
-D sysconfdir=/etc \
-D platforms=x11,wayland,drm,surfaceless \
-D dri-drivers="" \
-D gallium-drivers=r600,swrast \
-D vulkan-drivers="" \
-D dri3=true \
-D egl=true \
-D gallium-extra-hud=true \
-D gallium-nine=true \
-D gallium-omx=bellagio \
-D gallium-va=true \
-D gallium-vdpau=true \
-D gallium-xa=false \
-D gallium-xvmc=false \
-D gbm=true \
-D gles1=true \
-D gles2=true \
-D glvnd=true \
-D glx=dri \
-D libunwind=false \
-D llvm=true \
-D lmsensors=true \
-D osmesa=gallium \
-D shared-glapi=true \
-D gallium-opencl=icd \
-D valgrind=false \
-D tools=[]
meson configure _build
ninja -C _build</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>