virgl: Add an extra mov for int outputs from constant and immediate inputs
authorGert Wollny <gert.wollny@collabora.com>
Tue, 12 Apr 2022 09:47:31 +0000 (11:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Apr 2022 10:44:17 +0000 (10:44 +0000)
commitd1c7a7b1317c518e160cc6d37245de22b2bfa60d
tree3242d5a69e6f19b72e93e1c8170c69e8e8d7c47f
parenta083ae818af0c3a27f5615b2efb26345d9aa6e0f
virgl: Add an extra mov for int outputs from constant and immediate inputs

virglrenderer doesn't properly emit the conversion code when the source
is a integer value and the output is also integer.

Fixes on NTT:
  dEQP-GLES31.functional.shaders.sample_variables.sample_mask.inverse_per_*

v2: fix typo (Emma)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15836>
src/gallium/drivers/virgl/virgl_tgsi.c