[Piglit] [PATCH 1/1] cl: Unmap mapped cl buffer in buffer-flags test
Jan Vesely
jan.vesely at rutgers.edu
Thu Mar 16 23:17:50 UTC 2017
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
tests/cl/custom/buffer-flags.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/cl/custom/buffer-flags.c b/tests/cl/custom/buffer-flags.c
index 115fb92..1429de0 100644
--- a/tests/cl/custom/buffer-flags.c
+++ b/tests/cl/custom/buffer-flags.c
@@ -173,6 +173,8 @@ buffer_test(piglit_cl_context *ctx,
/* cleanup */
cleanup:
+ if (result != out_buffer)
+ clEnqueueUnmapMemObject(context->command_queues[0], out_buffer, result, 0, NULL, NULL);
clReleaseMemObject(in_buffer);
clReleaseMemObject(out_buffer);
clReleaseKernel(kernel);
--
2.9.3
More information about the Piglit
mailing list