iris: don't use index_bias if not indexed
index_bias is undefined if index_size == 0. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
This commit is contained in:
@@ -6631,8 +6631,6 @@ iris_upload_render_state(struct iris_context *ice,
|
||||
|
||||
if (draw->index_size) {
|
||||
prim.BaseVertexLocation += draw->index_bias;
|
||||
} else {
|
||||
prim.StartVertexLocation += draw->index_bias;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user