Commit 04067fbe authored by Juan Suárez Romero's avatar Juan Suárez Romero Committed by Dylan Baker

intel/compiler: store the FS inputs in WM prog data

Store the fragment shader inputs in the program data so we can use them
later when required without needing the NIR shader.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Juan Suárez Romero's avatarJuan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Ivan Briano's avatarIvan Briano <ivan.briano@intel.com>
Part-of: <!2010>
(cherry picked from commit 460de215)
parent 3744a31d
......@@ -2605,7 +2605,7 @@
"description": "intel/compiler: store the FS inputs in WM prog data",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},
......
......@@ -778,6 +778,11 @@ struct brw_wm_prog_data {
*/
uint32_t flat_inputs;
/**
* The FS inputs
*/
uint64_t inputs;
/* Mapping of VUE slots to interpolation modes.
* Used by the Gen4-5 clip/sf/wm stages.
*/
......
......@@ -1748,6 +1748,7 @@ calculate_urb_setup(const struct gen_device_info *devinfo,
}
prog_data->num_varying_inputs = urb_next;
prog_data->inputs = nir->info.inputs_read;
brw_compute_urb_setup_index(prog_data);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment