mesa/src
Ian Romanick 91225cb33f 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
2018-03-26 08:50:44 -07:00
..
amd radv: enable TC-compat HTILE for 16-bit depth surfaces on GFX8 2018-03-23 10:05:57 +01:00
broadcom broadcom/vc5: Account for InstanceID/VertexID in VPM segment size. 2018-03-22 15:12:21 -07:00
compiler nir: Don't condition 'a-b < 0' -> 'a < b' on is_not_used_by_conditional 2018-03-26 08:50:43 -07:00
egl wayland-drm: do not distribute generated sources 2018-03-23 11:27:12 +01:00
gallium svga: simplify uses_flat_interp expression in emit_input_declarations() 2018-03-23 09:03:26 -06:00
gbm meson: Use include directory variables instead of traversing 2018-03-07 13:30:53 -08:00
getopt
glx dri3: Don't fail on version mismatch 2018-03-20 08:52:59 +00:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel i965/vec4: Fix null destination register in 3-source instructions 2018-03-26 08:50:44 -07:00
loader dri3: Don't fail on version mismatch 2018-03-20 08:52:59 +00:00
mapi *-symbol-check: use correct `nm` path when cross-compiling 2018-02-26 13:50:59 +00:00
mesa mesa/st/tests: Use tgsi opcode enum also in the test classes 2018-03-26 09:04:53 -06:00
util meson/configure: detect endian.h instead of trying to guess when it's available 2018-03-23 11:44:21 +00:00
vulkan wayland-drm: do not distribute generated sources 2018-03-23 11:27:12 +01:00
Makefile.am autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
meson.build meson: fix building without GL 2018-02-26 09:32:14 -08:00