mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 06:50:10 +01:00
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:
parent
6b1f3884c3
commit
45eaf6c002
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue