Re: [Mesa-dev] [PATCH 01/10] gbm: Set errno on errors

2014-04-08 Thread Ander Conselvan de Oliveira
On 04/04/2014 01:37 PM, Emil Velikov wrote: On 04/04/14 09:36, Ander Conselvan de Oliveira wrote: From: Ander Conselvan de Oliveira This should give the caller some information of what called the error. For the gbm_bo_import() case, for instance, it is possible to know if the import is not sup

Re: [Mesa-dev] [PATCH 01/10] gbm: Set errno on errors

2014-04-04 Thread Emil Velikov
On 04/04/14 09:36, Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > This should give the caller some information of what called the error. > For the gbm_bo_import() case, for instance, it is possible to know if > the import is not supported or the error was caused by an

[Mesa-dev] [PATCH 01/10] gbm: Set errno on errors

2014-04-04 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira This should give the caller some information of what called the error. For the gbm_bo_import() case, for instance, it is possible to know if the import is not supported or the error was caused by an invalid parameter. --- src/gbm/backends/dri/gbm_dri.c | 38