projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc9c91
)
nvk: Don't assert when there are no attachments
author
Faith Ekstrand
<faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:53 +0000
(20:11 -0600)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:57 +0000
(21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_cmd_draw.c
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_cmd_draw.c
b/src/nouveau/vulkan/nvk_cmd_draw.c
index
4b4fb7a
..
d81bf7d
100644
(file)
--- a/
src/nouveau/vulkan/nvk_cmd_draw.c
+++ b/
src/nouveau/vulkan/nvk_cmd_draw.c
@@
-522,7
+522,7
@@
nvk_CmdBeginRendering(VkCommandBuffer commandBuffer,
P_IMMD(p, NV9097, SET_ZT_SELECT, 0 /* target_count */);
}
- P_IMMD(p, NV9097, SET_ANTI_ALIAS, ffs(
render->samples
) - 1);
+ P_IMMD(p, NV9097, SET_ANTI_ALIAS, ffs(
MAX2(1, render->samples)
) - 1);
if (render->flags & VK_RENDERING_RESUMING_BIT)
return;