On Fri, Mar 10, 2017 at 01:38:21PM +0100, Iago Toral Quiroga wrote: > --- > src/intel/vulkan/anv_batch_chain.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-)
Reviewed-by: Topi Pohjolainen <topi.pohjolai...@intel.com> > > diff --git a/src/intel/vulkan/anv_batch_chain.c > b/src/intel/vulkan/anv_batch_chain.c > index 1236001..3774172 100644 > --- a/src/intel/vulkan/anv_batch_chain.c > +++ b/src/intel/vulkan/anv_batch_chain.c > @@ -195,8 +195,13 @@ anv_reloc_list_append(struct anv_reloc_list *list, > void * > anv_batch_emit_dwords(struct anv_batch *batch, int num_dwords) > { > - if (batch->next + num_dwords * 4 > batch->end) > - batch->extend_cb(batch, batch->user_data); > + if (batch->next + num_dwords * 4 > batch->end) { > + VkResult result = batch->extend_cb(batch, batch->user_data); > + if (result != VK_SUCCESS) { > + anv_batch_set_error(batch, result); > + return NULL; > + } > + } > > void *p = batch->next; > > -- > 2.7.4 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev