mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vulkan: ignore rasterizationSamples when the state is dynamic
Fixes:1deb83fb86("vulkan: Add more dynamic multisample states") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-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/22444> (cherry picked from commitbdb03ecdd9)
This commit is contained in:
parent
8683404fa1
commit
4b0973d19e
2 changed files with 8 additions and 3 deletions
|
|
@ -2864,7 +2864,7 @@
|
|||
"description": "vulkan: ignore rasterizationSamples when the state is dynamic",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "1deb83fb86d22227a3553f43873b4d4ff9180214",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -653,8 +653,13 @@ vk_multisample_state_init(struct vk_multisample_state *ms,
|
|||
const BITSET_WORD *dynamic,
|
||||
const VkPipelineMultisampleStateCreateInfo *ms_info)
|
||||
{
|
||||
assert(ms_info->rasterizationSamples <= MESA_VK_MAX_SAMPLES);
|
||||
ms->rasterization_samples = ms_info->rasterizationSamples;
|
||||
if (IS_DYNAMIC(MS_RASTERIZATION_SAMPLES)) {
|
||||
ms->rasterization_samples = 0;
|
||||
} else {
|
||||
assert(ms_info->rasterizationSamples <= MESA_VK_MAX_SAMPLES);
|
||||
ms->rasterization_samples = ms_info->rasterizationSamples;
|
||||
}
|
||||
|
||||
ms->sample_shading_enable = ms_info->sampleShadingEnable;
|
||||
ms->min_sample_shading = ms_info->minSampleShading;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue