intel/compiler: Make thread_payload struct abstract

Each shader stage has its own struct and will instantiate it, so the
base class doesn't need to be instantiated anymore.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18176>
This commit is contained in:
Caio Oliveira 2022-08-29 17:13:00 -07:00 committed by Marge Bot
parent 0b6e613de8
commit 3272868218
2 changed files with 4 additions and 1 deletions

View file

@ -91,6 +91,9 @@ struct thread_payload {
uint8_t num_regs;
virtual ~thread_payload() = default;
protected:
thread_payload() : num_regs() {}
};
struct vs_thread_payload : public thread_payload {

View file

@ -1241,7 +1241,7 @@ fs_visitor::init()
this->nir_ssa_values = NULL;
this->nir_system_values = NULL;
this->payload_ = new thread_payload();
this->payload_ = NULL;
this->source_depth_to_render_target = false;
this->runtime_check_aads_emit = false;
this->first_non_payload_grf = 0;