mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 07:40:38 +02:00
asahi: hoist layer id code
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
bbe6689108
commit
53e820f20e
1 changed files with 3 additions and 3 deletions
|
|
@ -5021,6 +5021,9 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
|
|||
ctx->stage[PIPE_SHADER_VERTEX].dirty = ~0;
|
||||
|
||||
agx_batch_add_bo(batch, ctx->vs->bo);
|
||||
|
||||
batch->uniforms.layer_id_written =
|
||||
ctx->vs->info.writes_layer_viewport ? ~0 : 0;
|
||||
} else if (ctx->stage[PIPE_SHADER_VERTEX].dirty ||
|
||||
(ctx->dirty & AGX_DIRTY_VERTEX))
|
||||
ctx->dirty |= AGX_DIRTY_VS;
|
||||
|
|
@ -5036,9 +5039,6 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
|
|||
agx_batch_geometry_params(batch, ib, ib_extent, info, draws, indirect);
|
||||
}
|
||||
|
||||
struct agx_compiled_shader *vs = ctx->vs;
|
||||
batch->uniforms.layer_id_written = vs->info.writes_layer_viewport ? ~0 : 0;
|
||||
|
||||
/* Set draw ID */
|
||||
if (ctx->vs->info.uses_draw_id) {
|
||||
batch->uniforms.draw_id = drawid_offset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue