summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vc4/vc4_render_cl.c
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2024-06-21 16:20:44 +0100
committerDave Stevenson <dave.stevenson@raspberrypi.com>2024-09-09 13:02:53 +0100
commit24c5ed3ddf27313b248900455b0312bd7a9d3554 (patch)
tree7f38d3d940f1d4962195c91b048ca41b065b5b0a /drivers/gpu/drm/vc4/vc4_render_cl.c
parent1330d28d7529bf0ab84550053589afaa1ad0ecbb (diff)
downloadlinux-24c5ed3ddf27313b248900455b0312bd7a9d3554.tar.gz
linux-24c5ed3ddf27313b248900455b0312bd7a9d3554.tar.bz2
linux-24c5ed3ddf27313b248900455b0312bd7a9d3554.zip
drm/vc4: Introduce generation number enum
With the introduction of the BCM2712 support, we will get yet another generation of display engine to support. The binary check of whether it's VC5 or not thus doesn't work anymore, especially since some parts of the driver will have changed with BCM2711, and some others with BCM2712. Let's introduce an enum to store the generation the driver is running on, which should provide more flexibility. Signed-off-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-21-dave.stevenson@raspberrypi.com Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_render_cl.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_render_cl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_render_cl.c b/drivers/gpu/drm/vc4/vc4_render_cl.c
index 1bda5010f15a..ae4ad956f04f 100644
--- a/drivers/gpu/drm/vc4/vc4_render_cl.c
+++ b/drivers/gpu/drm/vc4/vc4_render_cl.c
@@ -599,7 +599,7 @@ int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec)
bool has_bin = args->bin_cl_size != 0;
int ret;
- if (WARN_ON_ONCE(vc4->is_vc5))
+ if (WARN_ON_ONCE(vc4->gen == VC4_GEN_5))
return -ENODEV;
if (args->min_x_tile > args->max_x_tile ||