From: Francisco Jerez Date: Sun, 7 Apr 2013 16:31:06 +0000 (+0200) Subject: clover: Fix usage of incorrect object as destination in clEnqueueCopyBufferToImage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02b808b08acc73b9b3d31832a7f137a9aae4bdd9;p=mesa.git clover: Fix usage of incorrect object as destination in clEnqueueCopyBufferToImage. Signed-off-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/api/transfer.cpp b/src/gallium/state_trackers/clover/api/transfer.cpp index 295d6c7b29e..7e6b26f9603 100644 --- a/src/gallium/state_trackers/clover/api/transfer.cpp +++ b/src/gallium/state_trackers/clover/api/transfer.cpp @@ -414,7 +414,7 @@ clEnqueueCopyBufferToImage(cl_command_queue q, cl_mem src_obj, cl_mem dst_obj, const size_t *dst_origin, const size_t *region, cl_uint num_deps, const cl_event *deps, cl_event *ev) try { - image *dst_img = dynamic_cast(src_obj); + image *dst_img = dynamic_cast(dst_obj); validate_base(q, num_deps, deps); validate_obj(q, src_obj);