zink: use implicit offsets for function temp variables in ntv
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

this is also apparently illegal

Fixes: 0b7611824a ("zink: use implicit stride in ntv for temp vars"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37312>
This commit is contained in:
Mike Blumenkrantz 2025-09-11 13:50:01 -04:00 committed by Marge Bot
parent c358842c1d
commit f419a96d76

View file

@ -630,7 +630,7 @@ get_glsl_type(struct ntv_context *ctx, const struct glsl_type *type, bool implic
glsl_get_length(type));
for (unsigned i = 0; i < glsl_get_length(type); i++) {
int32_t offset = glsl_get_struct_field_offset(type, i);
if (offset >= 0)
if (offset >= 0 && !implicit_stride)
spirv_builder_emit_member_offset(&ctx->builder, ret, i, offset);
}
} else