[Mesa-dev] [PATCH v3 04/14] i965/bufmgr: Add a BO_ALLOC_ZEROED flag

Chad Versace chadversary at chromium.org
Fri Jul 14 22:36:43 UTC 2017


On Wed 12 Jul 2017, Jason Ekstrand wrote:
> Cc: Kenneth Graunke <kenneth at whitecape.org>
> 
> ---
>  src/mesa/drivers/dri/i965/brw_bufmgr.c | 28 ++++++++++++++++++++++++++--
>  src/mesa/drivers/dri/i965/brw_bufmgr.h |  1 +
>  2 files changed, 27 insertions(+), 2 deletions(-)


> +      /* All new BOs we get from the kernel are zeroed, so we don't need to
> +       * worry about that here.
> +       */

Assuming the above comment is true, then
Reviewed-by: Chad Versace <chadversary at chromium.org>

>        ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CREATE, &create);
>        if (ret != 0) {
>           free(bo);


More information about the mesa-dev mailing list