diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2022-12-08 09:59:11 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2022-12-14 20:47:01 +0000 |
commit | e17740493fe2becd3cdf1f834a5f28f835eff0dc (patch) | |
tree | 6fa4d58cf2efc88e3abddc1edda1e244f5938b01 | |
parent | bcc73ba6f7ac06b2bb55654d85ec47b30a46ebd3 (diff) | |
download | mesa-e17740493fe2becd3cdf1f834a5f28f835eff0dc.tar.gz |
anv: emit sample mask state independent of fragment stage
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7861
Fixes: 9f6af43743d ("anv: dynamic multisample sample mask")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20221>
(cherry picked from commit 68ef0d84481fd92df6cde8935f079d958e6b36e9)
-rw-r--r-- | .pick_status.json | 2 | ||||
-rw-r--r-- | src/intel/vulkan/gfx8_cmd_buffer.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/.pick_status.json b/.pick_status.json index 3c5783f5097..f175404a9f8 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2272,7 +2272,7 @@ "description": "anv: emit sample mask state independent of fragment stage", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "9f6af43743d3dfed018e384e056da3b587d5f46d" }, diff --git a/src/intel/vulkan/gfx8_cmd_buffer.c b/src/intel/vulkan/gfx8_cmd_buffer.c index 60a9945e804..75e3531cd79 100644 --- a/src/intel/vulkan/gfx8_cmd_buffer.c +++ b/src/intel/vulkan/gfx8_cmd_buffer.c @@ -257,13 +257,9 @@ genX(cmd_emit_te)(struct anv_cmd_buffer *cmd_buffer) static void genX(cmd_emit_sample_mask)(struct anv_cmd_buffer *cmd_buffer) { - struct anv_graphics_pipeline *pipeline = cmd_buffer->state.gfx.pipeline; const struct vk_dynamic_graphics_state *dyn = &cmd_buffer->vk.dynamic_graphics_state; - if (!anv_pipeline_has_stage(pipeline, MESA_SHADER_FRAGMENT)) - return; - /* From the Vulkan 1.0 spec: * If pSampleMask is NULL, it is treated as if the mask has all bits * enabled, i.e. no coverage is removed from fragments. |