diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-06-22 14:25:15 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-06-22 16:41:30 +0200 |
commit | 3026b5ca06fa872147f9726ca7c1f658bae71abf (patch) | |
tree | 6f3f220455c51ea1fb0280c19a8442461a3019b0 /drivers/gpu/drm/vc4/vc4_validate.c | |
parent | drm/sun4i: Add DMA mask and segment size (diff) | |
download | linux-3026b5ca06fa872147f9726ca7c1f658bae71abf.tar.xz linux-3026b5ca06fa872147f9726ca7c1f658bae71abf.zip |
drm/vc4: fix error code in vc4_check_tex_size()
The vc4_check_tex_size() function is supposed to return false on error
but this error path accidentally returns -ENODEV (which means true).
Fixes: 30f8c74ca9b7 ("drm/vc4: Warn if some v3d code is run on BCM2711")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YrMKK89/viQiaiAg@kili
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_validate.c')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_validate.c b/drivers/gpu/drm/vc4/vc4_validate.c index 833eb623d545..2feba55bcef7 100644 --- a/drivers/gpu/drm/vc4/vc4_validate.c +++ b/drivers/gpu/drm/vc4/vc4_validate.c @@ -170,7 +170,7 @@ vc4_check_tex_size(struct vc4_exec_info *exec, struct drm_gem_cma_object *fbo, uint32_t utile_h = utile_height(cpp); if (WARN_ON_ONCE(vc4->is_vc5)) - return -ENODEV; + return false; /* The shaded vertex format stores signed 12.4 fixed point * (-2048,2047) offsets from the viewport center, so we should |