virgl: Apply integer op fix only for ALU ops and clear modifiers
authorGert Wollny <gert.wollny@collabora.com>
Tue, 12 Apr 2022 15:53:12 +0000 (17:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Apr 2022 08:56:47 +0000 (08:56 +0000)
commit6a264e7024a29eb7b41bbea18c653c3d232d16e8
treeddaf765742475a0ce805f893d920313ebf11b1c0
parent29564031cfd19caad734eaa334c5e5370b428352
virgl: Apply integer op fix only for ALU ops and clear modifiers

For texture fetches and buffer load the fix is not needed,
and the override creates faulty TGSI.

In addition remove all modifiers from the src in the additional mov
instruction.

Fixes: d1c7a7b1317c518e160cc6d37245de22b2bfa60d
  virgl: Add an extra mov for int outputs from constant and immediate inputs

v2: Move workaround after the use of
    virgl_tgsi_rewrite_src_for_input_temp (Emma)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15896>
src/gallium/drivers/virgl/virgl_tgsi.c