[Beignet] [V2 1/4] Fix gpgpu node related bug

Yang, Rong R rong.r.yang at intel.com
Tue Oct 13 00:14:56 PDT 2015


The patchset LGTM, thanks.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Pan Xiuli
> Sent: Tuesday, October 13, 2015 12:51
> To: beignet at lists.freedesktop.org
> Cc: Pan, Xiuli
> Subject: [Beignet] [V2 1/4] Fix gpgpu node related bug
> 
> This should be a typo, we should wait for the gpgpu and create node only if
> the batch buffer is busy.
> ---
>  src/intel/intel_gpgpu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index
> 901bd98..60d318a 100644
> --- a/src/intel/intel_gpgpu.c
> +++ b/src/intel/intel_gpgpu.c
> @@ -187,7 +187,7 @@ intel_gpgpu_delete(intel_gpgpu_t *gpgpu)
>      node = p->next;
>      while(node) {
>        if(node->gpgpu->batch && node->gpgpu->batch->buffer &&
> -         !drm_intel_bo_busy(node->gpgpu->batch->buffer)) {
> +         drm_intel_bo_busy(node->gpgpu->batch->buffer)) {
>          p->next = node->next;
>          intel_gpgpu_delete_finished(node->gpgpu);
>          cl_free(node);
> --
> 2.1.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list