mesa/src
Ian Romanick 2f67c9b175 i965/vec4: Fix null destination register in 3-source instructions
A recent commit (see below) triggered some cases where conditional
modifier propagation and dead code elimination would cause a MAD
instruction like the following to be generated:

    mad.l.f0  null, ...

Matt pointed out that fs_visitor::fixup_3src_null_dest() fixes cases
like this in the scalar backend.  This commit basically ports that code
to the vec4 backend.

NOTE: I have sent a couple tests to the piglit list that reproduce this
bug *without* the commit mentioned below.  This commit fixes those
tests.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Fixes: ee63933a7 ("nir: Distribute binary operations with constants into bcsel")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105704
(cherry picked from commit 91225cb33f)
2018-03-28 16:51:20 +02:00
..
amd radv: get correct offset into LDS for indexed vars. 2018-03-28 16:51:20 +02:00
broadcom broadcom/vc5: Remove unused v3d_compiler.c 2017-11-13 17:17:16 +00:00
compiler glsl/linker: fix bug when checking precision qualifier 2018-03-10 14:26:58 +01:00
egl egl/dri2: fix segfault when display initialisation fails 2018-03-10 14:26:57 +01:00
gallium st/dri: fix OpenGL-OpenCL interop for GL_TEXTURE_BUFFER 2018-03-28 16:51:20 +02:00
gbm meson: build libEGL 2017-10-20 16:46:48 -07:00
getopt
glx loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback 2018-03-08 16:43:06 +01:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel i965/vec4: Fix null destination register in 3-source instructions 2018-03-28 16:51:20 +02:00
loader loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback 2018-03-08 16:43:06 +01:00
mapi mesa: add glsl version query (v4) 2018-03-10 14:26:59 +01:00
mesa i965: Emit texture cache invalidates around blorp_copy 2018-03-28 16:51:20 +02:00
util meson/configure: detect endian.h instead of trying to guess when it's available 2018-03-28 16:51:20 +02:00
vulkan vulkan/wsi/x11: Set OUT_OF_DATE if wait_for_special_event fails 2018-03-10 14:25:45 +01:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am automake: include git_sha1.h.in in release tarball 2017-11-13 17:17:15 +00:00
meson.build meson: build libEGL 2017-10-20 16:46:48 -07:00
SConscript scons: use python3-compatible print() 2017-09-25 11:57:12 +01:00