Module: Mesa
Branch: staging/23.0
Commit: f7416ca7744bed2b4771a31ee818ae99f4812e20
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7416ca7744bed2b4771a31ee818ae99f4812e20

Author: SoroushIMG <[email protected]>
Date:   Fri Mar 10 16:24:46 2023 +0000

zink: fix stale point sprite mode state

Fixes: cf8ca77be10 ("zink: handle point sprite")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21840>
(cherry picked from commit 5903868f9919db6b929effa665b5a273604fa27d)

---

 .pick_status.json                     | 2 +-
 src/gallium/drivers/zink/zink_state.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 6e1981c7e54..5183d7037ea 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -13914,7 +13914,7 @@
         "description": "zink: fix stale point sprite mode state",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "cf8ca77be10772e96d44e6c3274b0fb94868abc4",
         "notes": null
diff --git a/src/gallium/drivers/zink/zink_state.c 
b/src/gallium/drivers/zink/zink_state.c
index b4512ea7cef..2b80643291a 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -678,7 +678,8 @@ zink_bind_rasterizer_state(struct pipe_context *pctx, void 
*cso)
       else if (rasterizer_discard != ctx->rast_state->base.rasterizer_discard)
          zink_set_color_write_enables(ctx);
 
-      if (ctx->rast_state->base.point_quad_rasterization != 
point_quad_rasterization)
+      if (ctx->rast_state->base.point_quad_rasterization ||
+          ctx->rast_state->base.point_quad_rasterization != 
point_quad_rasterization)
          zink_set_fs_point_coord_key(ctx);
       if (ctx->rast_state->base.scissor != scissor)
          ctx->scissor_changed = true;

Reply via email to