zink: fix vertex buffer mask computation for null buffers

off by N

affects:
KHR-GL46.texture_cube_map_array.sampling

Fixes: 53aade0ef0 ("zink: fix enabled vertex buffer mask calculation")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14721>
(cherry picked from commit 42ae116ac7)
This commit is contained in:
Mike Blumenkrantz 2022-01-25 15:20:50 -05:00 committed by Eric Engestrom
parent e3956c3d5c
commit adab2e0b7a
2 changed files with 2 additions and 2 deletions

View file

@ -3784,7 +3784,7 @@
"description": "zink: fix vertex buffer mask computation for null buffers",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "53aade0ef0def4ea7f8468cdec04acd2384e2d2c"
},

View file

@ -950,7 +950,7 @@ zink_set_vertex_buffers(struct pipe_context *pctx,
zink_resource_buffer_barrier(ctx, res, VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT,
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT);
} else {
enabled_buffers &= ~BITFIELD_BIT(i);
enabled_buffers &= ~BITFIELD_BIT(start_slot + i);
}
}
} else {