Re: [Mesa-dev] [PATCH] clover: change image class to inherit from buffer

2013-04-06 Thread Francisco Jerez
Dmitry Cherkassov writes: > image2d is dynamic_cast-ed down from buffer, but is not it's > direct subclass. Make it inhernit buffer. Hm, nope, you're not supposed to be able to dynamic_cast a buffer into an image2d. If you found this problem in clEnqueueCopyBufferToImage() try the attached patc

[Mesa-dev] [PATCH] clover: change image class to inherit from buffer

2013-04-06 Thread Dmitry Cherkassov
image2d is dynamic_cast-ed down from buffer, but is not it's direct subclass. Make it inhernit buffer. Signed-off-by: Dmitry Cherkassov --- src/gallium/state_trackers/clover/core/memory.cpp |4 ++-- src/gallium/state_trackers/clover/core/memory.hpp |2 +- 2 files changed, 3 insertions(+)