zink: handle bare matrix types in xfb emission

these have no inherent slot index since they aren't block members

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17404>
This commit is contained in:
Mike Blumenkrantz 2022-07-07 14:08:09 -04:00 committed by Marge Bot
parent a0771cd4ab
commit 76cc519866
1 changed files with 1 additions and 1 deletions

View File

@ -1491,7 +1491,7 @@ emit_so_outputs(struct ntv_context *ctx,
/* this is the type being indexed into */
const struct glsl_type *bare_type = glsl_without_array(out_type);
/* this is the array index into matrix types */
unsigned matrix_offset = so_output.register_index;
unsigned matrix_offset = glsl_type_is_matrix(bare_type) ? 0 : so_output.register_index;
do {
if (glsl_type_is_struct_or_ifc(bare_type)) {
uint32_t base_slot = (location & ~so_output.start_component) / 4;