intel/compiler: Create and use struct for TES 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:
@@ -101,6 +101,15 @@ struct tcs_thread_payload : public thread_payload {
|
||||
fs_reg icp_handle_start;
|
||||
};
|
||||
|
||||
struct tes_thread_payload : public thread_payload {
|
||||
tes_thread_payload();
|
||||
|
||||
fs_reg patch_urb_input;
|
||||
fs_reg primitive_id;
|
||||
fs_reg coords[3];
|
||||
fs_reg urb_output;
|
||||
};
|
||||
|
||||
struct fs_thread_payload : public thread_payload {
|
||||
fs_thread_payload(const fs_visitor &v,
|
||||
bool &source_depth_to_render_target,
|
||||
@@ -434,6 +443,11 @@ public:
|
||||
return *static_cast<tcs_thread_payload *>(this->payload_);
|
||||
}
|
||||
|
||||
tes_thread_payload &tes_payload() {
|
||||
assert(stage == MESA_SHADER_TESS_EVAL);
|
||||
return *static_cast<tes_thread_payload *>(this->payload_);
|
||||
}
|
||||
|
||||
fs_thread_payload &fs_payload() {
|
||||
assert(stage == MESA_SHADER_FRAGMENT);
|
||||
return *static_cast<fs_thread_payload *>(this->payload_);
|
||||
|
Reference in New Issue
Block a user