[Mesa-dev] [PATCH 06/17] i965: Drop a useless ret == 0 check.

Chris Wilson chris at chris-wilson.co.uk
Wed Sep 6 09:31:11 UTC 2017


Quoting Kenneth Graunke (2017-09-06 01:09:39)
> Prior to the previous patch, we would pwrite the batchbuffer contents,
> and wanted to skip the execbuffer if that failed.  Now, we write things
> directly to the map, so we don't need this check.
> ---
>  src/mesa/drivers/dri/i965/intel_batchbuffer.c | 40 ++++++++++++---------------
>  1 file changed, 18 insertions(+), 22 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
> index 9b37470f926..df094bb6047 100644
> --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
> +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
> @@ -199,8 +199,6 @@ intel_batchbuffer_reset_to_saved(struct brw_context *brw)
>  void
>  intel_batchbuffer_free(struct intel_batchbuffer *batch)
>  {
> -   free(batch->cpu_map);

Stray from previous patch.
-Chris


More information about the mesa-dev mailing list