Mesa (master): vc4: Fix mixup of return type in reloc_tex().
Eric Anholt
anholt at kemper.freedesktop.org
Wed Oct 29 00:17:10 UTC 2014
Module: Mesa
Branch: master
Commit: 5539a5b68518914af7e1b97b6a7f57961cdf21f2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5539a5b68518914af7e1b97b6a7f57961cdf21f2
Author: Eric Anholt <eric at anholt.net>
Date: Tue Oct 28 16:24:28 2014 -0700
vc4: Fix mixup of return type in reloc_tex().
---
src/gallium/drivers/vc4/kernel/vc4_validate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/vc4/kernel/vc4_validate.c b/src/gallium/drivers/vc4/kernel/vc4_validate.c
index 67bc5f7..977e071 100644
--- a/src/gallium/drivers/vc4/kernel/vc4_validate.c
+++ b/src/gallium/drivers/vc4/kernel/vc4_validate.c
@@ -778,14 +778,14 @@ reloc_tex(struct exec_info *exec,
if ((p3 & (3 << 30)) == (1 << 30)) {
if (cube_map_stride) {
DRM_ERROR("Cube map stride set twice\n");
- return -EINVAL;
+ return false;
}
cube_map_stride = p3 & 0x3ffff000;
}
if (!cube_map_stride) {
DRM_ERROR("Cube map stride not set\n");
- return -EINVAL;
+ return false;
}
}
More information about the mesa-commit
mailing list