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:
7e11cdc
)
vulkan/render_pass: Allow for mixed sample counts
author
Jason Ekstrand
<jason.ekstrand@collabora.com>
Wed, 25 May 2022 21:37:32 +0000
(16:37 -0500)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 24 Jun 2022 22:37:53 +0000
(22:37 +0000)
RADV supports VK_AMD_mixed_attachment_samples which does exactly what it
sounds like.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16953>
src/vulkan/runtime/vk_render_pass.c
patch
|
blob
|
history
diff --git
a/src/vulkan/runtime/vk_render_pass.c
b/src/vulkan/runtime/vk_render_pass.c
index
048a187
..
4f96ac3
100644
(file)
--- a/
src/vulkan/runtime/vk_render_pass.c
+++ b/
src/vulkan/runtime/vk_render_pass.c
@@
-648,7
+648,6
@@
vk_common_CreateRenderPass2(VkDevice _device,
color_formats[a] = att->format;
- assert(samples == 0 || samples == att->samples);
samples |= att->samples;
}
}
@@
-668,7
+667,6
@@
vk_common_CreateRenderPass2(VkDevice _device,
if (vk_format_has_stencil(att->format))
stencil_format = att->format;
- assert(samples == 0 || samples == att->samples);
samples |= att->samples;
}
}