intel/compiler: Create and use struct for VS thread payload

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18176>
This commit is contained in:
Caio Oliveira
2022-08-21 21:22:12 -07:00
committed by Marge Bot
parent 19c6e1b447
commit 0ca65b3c4c
4 changed files with 30 additions and 13 deletions

View File

@@ -25,6 +25,13 @@
using namespace brw;
vs_thread_payload::vs_thread_payload()
{
urb_handles = retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD);
num_regs = 2;
}
tcs_thread_payload::tcs_thread_payload(const fs_visitor &v)
{
struct brw_vue_prog_data *vue_prog_data = brw_vue_prog_data(v.prog_data);