diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index 6e1a525360b..6a7bdeef19c 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -168,6 +168,9 @@ struct agx_shader_info { * respectively. */ unsigned nr_gprs, nr_preamble_gprs; + + /* Output mask set during driver lowering */ + uint64_t outputs; }; #define AGX_MAX_RTS (8) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 00b27e41b71..cc24c14fc0b 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -1892,6 +1892,7 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx, /* Auxiliary programs */ enum mesa_prim gs_out_prim = MESA_PRIM_MAX; + uint64_t outputs = 0; unsigned gs_out_count_words = 0; nir_shader *gs_count = NULL; nir_shader *gs_copy = NULL; @@ -2093,6 +2094,7 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx, compiled->gs_output_mode = gs_out_prim; compiled->gs_count_words = gs_out_count_words; + compiled->info.outputs = outputs; ralloc_free(nir); ralloc_free(pre_gs);