zink: fix stale point sprite mode state

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

stable:
  - mark spec@arb_point_sprite@arb_point_sprite-checkerboard as pass
This commit is contained in:
SoroushIMG 2023-03-10 16:24:46 +00:00 committed by Dylan Baker
parent 07eb13f0c2
commit a7ad91ba0d
3 changed files with 3 additions and 3 deletions

View file

@ -19714,7 +19714,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

View file

@ -94,7 +94,6 @@ spec@!opengl 2.1@polygon-stipple-fs,Fail
spec@arb_depth_texture@depth-tex-modes,Fail
spec@arb_gpu_shader_fp64@execution@arb_gpu_shader_fp64-tf-separate,Fail
spec@arb_pipeline_statistics_query@arb_pipeline_statistics_query-frag,Fail
spec@arb_point_sprite@arb_point_sprite-checkerboard,Fail
spec@arb_point_sprite@arb_point_sprite-mipmap,Fail
spec@arb_program_interface_query@arb_program_interface_query-getprogramresourceindex,Fail
spec@arb_program_interface_query@arb_program_interface_query-getprogramresourceindex@'vs_input2[1][0]' on GL_PROGRAM_INPUT,Fail

View file

@ -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;