OSDN Git Service

ac/nir,radv,radeonsi/nir: use correct indices for interpolation intrinsics
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 9 Jan 2019 11:09:33 +0000 (11:09 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 9 Jan 2019 14:57:07 +0000 (14:57 +0000)
commitee8488ea3b99ad0632e5eac6defcef0264d8782c
treec66684a488bbaf5917e463eb47f3d1cf598abe11
parentb8c4f523b40e3d9dbe1f81f2c69b31618f7a9b62
ac/nir,radv,radeonsi/nir: use correct indices for interpolation intrinsics

Fixes artifacts in World of Warcraft when Multi-sample Alpha-Test is
enabled with DXVK.
It also fixes artifacts with Fallout 4's god rays with DXVK.
Various piglit interpolateAt*() tests under NIR are also fixed.

v2: formatting fix
    update commit message to include Fallout 4 and the Fixes tag

Fixes: f4e499ec791 ('radv: add initial non-conformant radv vulkan driver')
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106595
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_shader_abi.h
src/amd/vulkan/radv_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader_nir.c