Module: Mesa Branch: main Commit: 16e4dd3e373b71e9ff8cb3c79b7d9c21f084fdae URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=16e4dd3e373b71e9ff8cb3c79b7d9c21f084fdae
Author: Samuel Pitoiset <[email protected]> Date: Mon Feb 6 16:29:05 2023 +0100 radv: fix disabling MRT compaction for on-demand PS epilogs Some dynamic states require to compile PS epilogs on-demand. In this case, MRT compaction should be disabled because we don't know the CB state when compiling the fragment shader. Signed-off-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21140> --- src/amd/vulkan/radv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index f1d39ea4107..af0f9ed12f1 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2421,7 +2421,7 @@ radv_generate_graphics_pipeline_key(const struct radv_graphics_pipeline *pipelin !(lib_flags & VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_OUTPUT_INTERFACE_BIT_EXT)) || key.ps.dynamic_ps_epilog); - key.ps.epilog = radv_pipeline_generate_ps_epilog_key(pipeline, state, pipeline->ps_epilog); + key.ps.epilog = radv_pipeline_generate_ps_epilog_key(pipeline, state, key.ps.has_epilog); key.dynamic_patch_control_points = !!(pipeline->dynamic_states & RADV_DYNAMIC_PATCH_CONTROL_POINTS);
