Module: Mesa
Branch: main
Commit: aebe65e88a4245444e32da3536e40c229af8d821
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aebe65e88a4245444e32da3536e40c229af8d821

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Feb  2 14:15:35 2023 +0100

radv: return a boolean value in radv_pipeline_needs_dynamic_ps_epilog()

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21068>

---

 src/amd/vulkan/radv_pipeline.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index fd59ce184d9..c0f90468d81 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -2118,10 +2118,10 @@ static bool
 radv_pipeline_needs_dynamic_ps_epilog(const struct radv_graphics_pipeline 
*pipeline)
 {
    /* These dynamic states need to compile PS epilogs on-demand. */
-   return pipeline->dynamic_states & (RADV_DYNAMIC_COLOR_BLEND_ENABLE |
-                                      RADV_DYNAMIC_COLOR_WRITE_MASK |
-                                      RADV_DYNAMIC_ALPHA_TO_COVERAGE_ENABLE |
-                                      RADV_DYNAMIC_COLOR_BLEND_EQUATION);
+   return !!(pipeline->dynamic_states & (RADV_DYNAMIC_COLOR_BLEND_ENABLE |
+                                         RADV_DYNAMIC_COLOR_WRITE_MASK |
+                                         RADV_DYNAMIC_ALPHA_TO_COVERAGE_ENABLE 
|
+                                         RADV_DYNAMIC_COLOR_BLEND_EQUATION));
 }
 
 struct radv_pipeline_key

Reply via email to