mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
asahi: shrink GS key
no functional change, just dropping the unused index size field 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
f4a187bc89
commit
37fa7bff58
2 changed files with 11 additions and 4 deletions
|
|
@ -1942,7 +1942,12 @@ agx_compile_variant(struct agx_device *dev, struct pipe_context *pctx,
|
|||
|
||||
NIR_PASS(_, nir, nir_lower_io_to_scalar, nir_var_shader_out, NULL, NULL);
|
||||
|
||||
NIR_PASS(_, nir, agx_nir_lower_gs, dev->libagx, &key->ia,
|
||||
struct agx_ia_key ia = {
|
||||
.flatshade_first = key->flatshade_first,
|
||||
.mode = key->mode,
|
||||
};
|
||||
|
||||
NIR_PASS(_, nir, agx_nir_lower_gs, dev->libagx, &ia,
|
||||
key->rasterizer_discard, &gs_count, &gs_copy, &pre_gs,
|
||||
&gs_out_prim, &gs_out_count_words);
|
||||
} else if (nir->info.stage == MESA_SHADER_FRAGMENT) {
|
||||
|
|
@ -2520,8 +2525,8 @@ agx_update_gs(struct agx_context *ctx, const struct pipe_draw_info *info,
|
|||
}
|
||||
|
||||
struct asahi_gs_shader_key key = {
|
||||
.ia.mode = info->mode,
|
||||
.ia.flatshade_first =
|
||||
.mode = info->mode,
|
||||
.flatshade_first =
|
||||
ia_needs_provoking(info->mode) && ctx->rast->base.flatshade_first,
|
||||
|
||||
.rasterizer_discard = ctx->rast->base.rasterizer_discard,
|
||||
|
|
|
|||
|
|
@ -499,7 +499,9 @@ struct asahi_tcs_shader_key {
|
|||
};
|
||||
|
||||
struct asahi_gs_shader_key {
|
||||
struct agx_ia_key ia;
|
||||
/* Input assembly key */
|
||||
enum mesa_prim mode;
|
||||
bool flatshade_first;
|
||||
|
||||
/* If true, this GS is run only for its side effects (including XFB) */
|
||||
bool rasterizer_discard;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue