gallium/radeon/winsyses: print CS submission error number
authorMarek Olšák <marek.olsak@amd.com>
Fri, 29 Jul 2016 16:31:33 +0000 (18:31 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 6 Aug 2016 11:56:14 +0000 (13:56 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_cs.c

index fb517b9ac54c05262c57c7b26825fb4cbc68aab8..35e1b48605a1435eff206002131bf302c98dbbfa 100644 (file)
@@ -935,7 +935,7 @@ void amdgpu_cs_submit_ib(void *job, int thread_index)
          fprintf(stderr, "amdgpu: Not enough memory for command submission.\n");
       else
          fprintf(stderr, "amdgpu: The CS has been rejected, "
-                 "see dmesg for more information.\n");
+                 "see dmesg for more information (%i).\n", r);
 
       amdgpu_fence_signalled(cs->fence);
    } else {
index 606c38d119d4f98248daa9b932f40c60053a5ca5..4a6f0055daa95dc87b88c71477e70304cf64e869 100644 (file)
@@ -447,7 +447,7 @@ void radeon_drm_cs_emit_ioctl_oneshot(void *job, int thread_index)
             }
         } else {
             fprintf(stderr, "radeon: The kernel rejected CS, "
-                    "see dmesg for more information.\n");
+                    "see dmesg for more information (%i).\n", r);
         }
     }