if (indirect) {
if (indirect->buffer && !batch_references_resource(batch, indirect->buffer))
return true;
+ if (indirect->indirect_draw_count &&
+ !batch_references_resource(batch, indirect->indirect_draw_count))
+ return true;
if (indirect->count_from_stream_output)
return true;
}
/* Mark indirect draw buffer as being read */
if (indirect) {
- if (indirect->buffer)
- resource_read(batch, indirect->buffer);
+ resource_read(batch, indirect->buffer);
+ resource_read(batch, indirect->indirect_draw_count);
if (indirect->count_from_stream_output)
resource_read(
batch, fd_stream_output_target(indirect->count_from_stream_output)