aco: Treat outputs of the previous stage as inputs of the next stage.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4165>
This commit is contained in:
Timur Kristóf
2020-03-17 13:43:08 +01:00
committed by Marge Bot
parent f1dd81ae10
commit e4a1b246a4
2 changed files with 28 additions and 21 deletions
@@ -40,9 +40,9 @@
namespace aco {
struct output_state {
struct shader_io_state {
uint8_t mask[VARYING_SLOT_VAR31 + 1];
Temp outputs[VARYING_SLOT_VAR31 + 1][4];
Temp temps[VARYING_SLOT_VAR31 + 1][4];
};
struct isel_context {
@@ -102,8 +102,9 @@ struct isel_context {
uint32_t tcs_num_patches;
bool tcs_in_out_eq = false;
/* VS, FS or GS output information */
output_state outputs;
/* I/O information */
shader_io_state inputs;
shader_io_state outputs;
};
Temp get_arg(isel_context *ctx, struct ac_arg arg)