mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
zink: use implicit offsets for function temp variables in ntv
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:
parent
c358842c1d
commit
f419a96d76
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue