Skip to content
Snippets Groups Projects
Commit 2569f415 authored by Marek Olšák's avatar Marek Olšák Committed by Eric Engestrom
Browse files

st/mesa: don't crash when draw indirect buffer has no storage


Fixes: 22f6624e - gallium: separate indirect stuff from pipe_draw_info

Acked-by: default avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Part-of: <!13471>
(cherry picked from commit 520300ad)
parent 03b36e3e
No related branches found
No related tags found
No related merge requests found
......@@ -733,7 +733,7 @@
"description": "st/mesa: don't crash when draw indirect buffer has no storage",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "22f6624ed318e8131681ec1f2e7b3a59449df412"
},
......
......@@ -262,6 +262,10 @@ st_indirect_draw_vbo(struct gl_context *ctx,
indirect.buffer = st_buffer_object(indirect_data)->buffer;
indirect.offset = indirect_offset;
/* Viewperf2020/Maya draws with a buffer that has no storage. */
if (!indirect.buffer)
return;
if (!st->has_multi_draw_indirect) {
int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment