This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using clEnqueueMapBuffer Mali-T880

Hi everyone,

I'd like to know what happens when I use the command clEnqueueMapBuffer to the hardware level.

All the buffer at CPU-side cache is invalidated?

And when I use the command clEnqueueUnmapMemObject,

All the buffer at GPU-side cache is invalidated?

Thanks!

Parents
  • Hi rafaelsousa,

    In the Mali driver the memory gets mapped on allocation and remains mapped for the entire lifetime of the allocation, therefore you are right: when clEnqueueMapBuffer gets executed the CPU caches gets invalidated and the same happens when Unmapping.

    Note: unless the Map is a blocking map the cache maintenance will actually happen when the command queue gets flushed not when this command gets enqueued.

    Hope this helps,

    Thanks,

    Anthony

Reply
  • Hi rafaelsousa,

    In the Mali driver the memory gets mapped on allocation and remains mapped for the entire lifetime of the allocation, therefore you are right: when clEnqueueMapBuffer gets executed the CPU caches gets invalidated and the same happens when Unmapping.

    Note: unless the Map is a blocking map the cache maintenance will actually happen when the command queue gets flushed not when this command gets enqueued.

    Hope this helps,

    Thanks,

    Anthony

Children