mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
asahi: add shader_info::outputs for gs lower
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
cdd1b012e9
commit
b2d547b361
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue