mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
asahi: respect render condition for compute
KHR-GL43.compute_shader.conditional-dispatching Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
parent
1a39d1c73a
commit
1e2de134ad
1 changed files with 3 additions and 0 deletions
|
|
@ -4418,6 +4418,9 @@ static void
|
|||
agx_launch_grid(struct pipe_context *pipe, const struct pipe_grid_info *info)
|
||||
{
|
||||
struct agx_context *ctx = agx_context(pipe);
|
||||
if (unlikely(!agx_render_condition_check(ctx)))
|
||||
return;
|
||||
|
||||
struct agx_batch *batch = agx_get_compute_batch(ctx);
|
||||
agx_batch_add_timestamp_query(batch, ctx->time_elapsed);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue