Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
static const char *ring_str(int ring)
{
switch (ring) {
- case RING_RENDER: return "render";
- case RING_BSD: return "bsd";
- case RING_BLT: return "blt";
+ case RING_RENDER: return " render";
+ case RING_BSD: return " bsd";
+ case RING_BLT: return " blt";
default: return "";
}
}
err->tiling = obj->tiling_mode;
err->dirty = obj->dirty;
err->purgeable = obj->madv != I915_MADV_WILLNEED;
- err->ring = obj->ring->id;
+ err->ring = obj->ring ? obj->ring->id : 0;
if (++i == count)
break;