mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
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: 30f8c74ca9
("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
This commit is contained in:
parent
f5aa16807a
commit
3026b5ca06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue