nvk/nak/xfb: handle skipping properly when setting xfb_attr.

The code treated 0x00 and 0xff the same, but they aren't,
port over the codegen code.

Fixes GTF-GL45.gtf40.GL3Tests.transform_feedback3.transform_feedback3_skip_components
with zink on nvk

v2: drop padding to 0, tests still pass.

Fixes: 30f01c47c2 ("nak: Translate XFB info")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26559>
This commit is contained in:
Dave Airlie 2023-12-07 16:42:51 +10:00 committed by Marge Bot
parent 6b1f3884c3
commit 45eaf6c002

View file

@ -539,6 +539,7 @@ nak_xfb_from_nir(const struct nir_xfb_info *nir_xfb)
nak_xfb.stride[b] = nir_xfb->buffers[b].stride;
nak_xfb.stream[b] = nir_xfb->buffer_to_stream[b];
}
memset(nak_xfb.attr_index, 0xff, sizeof(nak_xfb.attr_index)); /* = skip */
for (unsigned o = 0; o < nir_xfb->output_count; o++) {
const nir_xfb_output_info *out = &nir_xfb->outputs[o];