summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/v3d
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-11-30 16:57:59 -0800
committerEric Anholt <eric@anholt.net>2018-12-03 11:24:58 -0800
commitdb176f6ba1da39ad0016c77b9775a6bb3d0ce88a (patch)
treed866e6ce5acc9f83b25e6760cedd1ea0781b831a /drivers/gpu/drm/v3d
parent86bbd89d5da66fe760049ad3f04adc407ec0c4d6 (diff)
downloadlinux-db176f6ba1da39ad0016c77b9775a6bb3d0ce88a.tar.bz2
drm/v3d: Add missing fence timeline name for TFU.
We shouldn't be returning v3d-render for our new queue. Signed-off-by: Eric Anholt <eric@anholt.net> Fixes: 83d5139982db ("drm/v3d: Add support for submitting jobs to the TFU.") Link: https://patchwork.freedesktop.org/patch/msgid/20181201005759.28093-6-eric@anholt.net Reviewed-by: Dave Emett <david.emett@broadcom.com>
Diffstat (limited to 'drivers/gpu/drm/v3d')
-rw-r--r--drivers/gpu/drm/v3d/v3d_fence.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/v3d/v3d_fence.c b/drivers/gpu/drm/v3d/v3d_fence.c
index 50bfcf9a8a1a..b0a2a1ae2eb1 100644
--- a/drivers/gpu/drm/v3d/v3d_fence.c
+++ b/drivers/gpu/drm/v3d/v3d_fence.c
@@ -29,10 +29,16 @@ static const char *v3d_fence_get_timeline_name(struct dma_fence *fence)
{
struct v3d_fence *f = to_v3d_fence(fence);
- if (f->queue == V3D_BIN)
+ switch (f->queue) {
+ case V3D_BIN:
return "v3d-bin";
- else
+ case V3D_RENDER:
return "v3d-render";
+ case V3D_TFU:
+ return "v3d-tfu";
+ default:
+ return NULL;
+ }
}
const struct dma_fence_ops v3d_fence_ops = {