intel/compiler: fix loading of draw_id from task & mesh payload
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 29 Sep 2022 14:47:32 +0000 (16:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 29 Sep 2022 17:17:25 +0000 (17:17 +0000)
commit9bac88856d475fa2a8a0c233a1555162aa411ba8
treeb23d2551937a1e2576315ee485af7f884a5b35cd
parente5631add0d1c97da4686f474735d45705facd308
intel/compiler: fix loading of draw_id from task & mesh payload

Previously both destination and source were floats, so no casting was
performed, but with 7664c85b1da source register was reinterpreted as
unsigned integer, so MOV started casting that integer to float.

Fixes: 7664c85b1da ("intel/compiler: Create and use struct for TASK and MESH thread payloads")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18886>
src/intel/compiler/brw_mesh.cpp