diff options
author | Eric Anholt <[email protected]> | 2015-07-29 12:20:33 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-07-30 15:46:27 -0700 |
commit | d0173bce371e3aafa732600c1456a9282ff5d900 (patch) | |
tree | 1935ae69bf3067c306b46b3a04fad6274c89a93d /src/gallium/drivers/vc4 | |
parent | a5b3b24958b5e4344e7d8d1e029dbf7e5afb183c (diff) |
vc4: Fix return values from recent validation changes.
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/kernel/vc4_validate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/kernel/vc4_validate.c b/src/gallium/drivers/vc4/kernel/vc4_validate.c index e81dd9935ca..cba948a1c67 100644 --- a/src/gallium/drivers/vc4/kernel/vc4_validate.c +++ b/src/gallium/drivers/vc4/kernel/vc4_validate.c @@ -207,7 +207,7 @@ validate_flush(VALIDATE_ARGS) { if (!validate_bin_pos(exec, untrusted, exec->args->bin_cl_size - 1)) { DRM_ERROR("Bin CL must end with VC4_PACKET_FLUSH\n"); - return false; + return -EINVAL; } exec->found_flush = true; @@ -783,17 +783,17 @@ validate_gl_shader_rec(struct drm_device *dev, for (i = 0; i < shader_reloc_count; i++) { if (src_handles[i] > exec->bo_count) { DRM_ERROR("Shader handle %d too big\n", src_handles[i]); - return false; + return -EINVAL; } bo[i] = exec->bo[src_handles[i]]; if (!bo[i]) - return false; + return -EINVAL; } for (i = shader_reloc_count; i < nr_relocs; i++) { bo[i] = vc4_use_bo(exec, src_handles[i]); if (!bo[i]) - return false; + return -EINVAL; } for (i = 0; i < shader_reloc_count; i++) { |