Commit 38f1e155 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

zink: add assert showing that byte-indices isn't implemented

It's a bit better for debugging purposes to assert here rather than
parent a7624b49
......@@ -1241,6 +1241,7 @@ zink_draw_vbo(struct pipe_context *pctx,
screen->vk_CmdBeginTransformFeedbackEXT(tracker->cmdbuf, 0, ctx->num_so_targets, counter_buffers, counter_buffer_offsets);
if (dinfo->index_size > 0) {
assert(dinfo->index_size != 1);
VkIndexType index_type = dinfo->index_size == 2 ? VK_INDEX_TYPE_UINT16 : VK_INDEX_TYPE_UINT32;
zink_cmdbuf_add_resource(tracker, zink_resource(index_buffer));
vkCmdBindIndexBuffer(tracker->cmdbuf, zink_resource(index_buffer)->buffer, index_offset, index_type);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment