Module: Mesa Branch: master Commit: 5cd113cb1086cc82f6ae413accdb558671bb1d5b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cd113cb1086cc82f6ae413accdb558671bb1d5b
Author: Erik Faye-Lund <[email protected]> Date: Mon Mar 29 16:37:14 2021 +0200 zink: document why we're calling pipe_shader_type_from_mesa Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9898> --- src/gallium/drivers/zink/zink_program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index 0424a78e039..55192b7ad8e 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -373,6 +373,7 @@ update_shader_modules(struct zink_context *ctx, struct zink_shader *stages[ZINK_ } for (int i = 0; i < ZINK_SHADER_COUNT; ++i) { + /* we need to iterate over the stages in pipeline-order here */ enum pipe_shader_type type = pipe_shader_type_from_mesa(i); assert(type < ZINK_SHADER_COUNT); if (dirty[i]) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
