From c972359d41c5e7032ed8615ef63f390260c4acae Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 5 Oct 2023 08:49:46 +0200 Subject: [PATCH] panfrost: Flag the right shader when updating images Fixes: fab1fabb4f0b ("panfrost: Dirty track fragment images") Signed-off-by: Boris Brezillon Reviewed-by: Erik Faye-Lund Part-of: (cherry picked from commit 8ed471a339543072e0683308ac1ee1a4faad41fb) --- .pick_status.json | 2 +- src/gallium/drivers/panfrost/pan_context.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 02852cb..01fc530 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -914,7 +914,7 @@ "description": "panfrost: Flag the right shader when updating images", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "fab1fabb4f0b807b4a9fb1fb5d7180fb8d8e3a45", "notes": null diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index ae5e260..65e0618 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -254,7 +254,7 @@ panfrost_set_shader_images(struct pipe_context *pctx, const struct pipe_image_view *iviews) { struct panfrost_context *ctx = pan_context(pctx); - ctx->dirty_shader[PIPE_SHADER_FRAGMENT] |= PAN_DIRTY_STAGE_IMAGE; + ctx->dirty_shader[shader] |= PAN_DIRTY_STAGE_IMAGE; /* Unbind start_slot...start_slot+count */ if (!iviews) { -- 2.7.4