clover: Fix usage of incorrect object as destination in clEnqueueCopyBufferToImage.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 7 Apr 2013 16:31:06 +0000 (18:31 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 13 Apr 2013 12:24:10 +0000 (14:24 +0200)
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/transfer.cpp

index 295d6c7b29e3f966158413db93731f7e9b2fed93..7e6b26f9603c287c9649742bcb5df37009cb69d7 100644 (file)
@@ -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<image *>(src_obj);
+   image *dst_img = dynamic_cast<image *>(dst_obj);
 
    validate_base(q, num_deps, deps);
    validate_obj(q, src_obj);