mesa/src
Samuel Pitoiset 51ff50ef30 radv,aco: fix shifting input VGPRs for the LS VGPR init bug on GFX9
We were incorrectly shifting the input VGPRs for the instance ID
for chips affected by the LS VGPR init bug (ie. Vega10 and Raven).

When there is no HS threads, the hardware loads the LS VGPR
starting from VGPR 0, so they should be shifted by two.

This fixes some sort of vertex explosion with Squad, Visage, Barn
Finders and probably more titles that use tessellation. Note that
only Vega10 and Raven were affected by this bug.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4129
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3311
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Diego Viola <diego.viola@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8694>
(cherry picked from commit bb8f87088c)
2021-01-25 10:07:15 -08:00
..
amd radv,aco: fix shifting input VGPRs for the LS VGPR init bug on GFX9 2021-01-25 10:07:15 -08:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom v3d: mark some variables static const 2021-01-13 07:24:32 +00:00
compiler nir: Work around MSVC x86 internal compiler error 2021-01-21 13:26:35 -08:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/dri2: fix image loaderPrivate type mixup 2020-12-24 00:05:15 +09:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno turnip: implement indirect dispatch 2021-01-13 09:55:47 +00:00
gallium zink: clone shader before lowering clip_halfz 2021-01-22 14:13:22 -08:00
gbm egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
getopt
glx glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-25 10:07:15 -08:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel intel/fs: QUAD_SWIZZLE requires packed data 2021-01-22 14:13:22 -08:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi glapi: fix unused-function warning 2020-12-01 16:51:01 +00:00
mesa st/mesa: fix broken moves for u2i64 and related ops 2021-01-21 14:52:54 -08:00
microsoft nir: replace .lower_sub with .has_fsub and .has_isub 2021-01-11 19:13:51 +00:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/decode: Free mapped memory objects on BO unreference 2021-01-21 13:26:35 -08:00
util util: Fix pointer to integer conversion error when using libunwind 2021-01-19 09:32:42 -08:00
virtio virgl: Enable GL_EXT_texture_sRGB_RG8 2021-01-04 21:19:35 +00:00
vulkan wsi/x11: Use get_screen_resources_current in wsi_x11_detect_xwayland 2021-01-20 09:22:16 -08:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript driconf: drop now unused translation facility 2020-06-22 21:50:12 +00:00