zink: document why we're calling pipe_shader_type_from_mesa

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9898>
This commit is contained in:
Erik Faye-Lund 2021-03-29 16:37:14 +02:00 committed by Marge Bot
parent b25188021d
commit 5cd113cb10
1 changed files with 1 additions and 0 deletions

View File

@ -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]) {