Closed UjinT34 closed 1 month ago
Why? It's really slow. I'd rather provide an API to submit CPU buffers for cursors.
A temporary solution. Not for the hw cursors themselves but for features that require them.
beginDataPtr
api already exists. Is there any better way of returning something useful from this function?
Expose gbm buffer mapping through
beginDataPtr
. The mapping is created only once so only flags passed for the first time are used. Can be used to copy data to the gbm buffer if rendering fails (flags = GBM_BO_TRANSFER_WRITE
). Assumes 4 bytes per pixel as the most common case for cursor buffers.