Commit a11945d1 authored by Erik Faye-Lund 's avatar Erik Faye-Lund
Browse files

i915: support NULL-resources

It's legal for a buffer-object to have a NULL-resource, but let's just
skip over it, as there's nothing to do.
Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <>
parent a8e8204b
......@@ -75,8 +75,11 @@ i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
for (i = 0; i < i915->nr_vertex_buffers; i++) {
const void *buf = i915->vertex_buffers[i].is_user_buffer ?
i915->vertex_buffers[i].buffer.user : NULL;
if (!buf)
buf = i915_buffer(i915->vertex_buffers[i].buffer.resource)->data;
if (!buf) {
if (!i915->vertex_buffers[i].buffer.resource)
buf = i915_buffer(i915->vertex_buffers[i].buffer.resource)->data;
draw_set_mapped_vertex_buffer(draw, i, buf, ~0);
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