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:
parent
7650e6fc4c
commit
394c7f3f62
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue