zink: add missing assert for 8bit vertex decompose

verify that this bit was set above

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14380>
This commit is contained in:
Mike Blumenkrantz 2022-01-03 12:02:24 -05:00 committed by Marge Bot
parent 7650e6fc4c
commit 394c7f3f62
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ zink_create_vertex_elements_state(struct pipe_context *pctx,
size = 4;
else if (size16 & BITFIELD_BIT(i))
size = 2;
else
assert(size8 & BITFIELD_BIT(i));
for (unsigned j = 1; j < desc->nr_channels; j++) {
if (screen->info.have_EXT_vertex_input_dynamic_state) {
memcpy(&ves->hw_state.dynattribs[num_elements], &ves->hw_state.dynattribs[i], sizeof(VkVertexInputAttributeDescription2EXT));