Re: [Mesa-dev] [PATCH v2] i965: Fix shadow batches to be the same size as the real BO.

2018-04-13 Thread Lionel Landwerlin
Reviewed-by: Lionel Landwerlin On 13/04/18 13:49, Kenneth Graunke wrote: brw_bo_alloc may round up our allocation size to the next bucket size. In this case, we would malloc a shadow buffer that was the original intended size, but use bo->size (the larger size)

[Mesa-dev] [PATCH v2] i965: Fix shadow batches to be the same size as the real BO.

2018-04-13 Thread Kenneth Graunke
brw_bo_alloc may round up our allocation size to the next bucket size. In this case, we would malloc a shadow buffer that was the original intended size, but use bo->size (the larger size) for all of our checks. This could cause us to run off the end of the shadow buffer. v2: Actually use the