ffmpeg | branch: master | Lynne <d...@lynne.ee> | Tue Nov 12 04:09:38 2024 
+0100| [16fa7103402bfd204f3c5f08c45652afcd9a96cf] | committer: Lynne

vulkan: fix printing descriptors to shader for shaders with no descriptors

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16fa7103402bfd204f3c5f08c45652afcd9a96cf
---

 libavutil/vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 159165a19d..2813bc1af9 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -2135,7 +2135,7 @@ print:
     /* Write shader info */
     for (int i = 0; i < nb; i++) {
         const struct descriptor_props *prop = &descriptor_props[desc[i].type];
-        GLSLA("layout (set = %i, binding = %i", shd->nb_descriptor_sets - 1, 
i);
+        GLSLA("layout (set = %i, binding = %i", FFMAX(shd->nb_descriptor_sets 
- 1, 0), i);
 
         if (desc[i].mem_layout)
             GLSLA(", %s", desc[i].mem_layout);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to