hyprwm / aquamarine

Aquamarine is a very light linux rendering backend library
BSD 3-Clause "New" or "Revised" License
219 stars 16 forks source link

Expose bo buffer mapping #12

Closed UjinT34 closed 1 month ago

UjinT34 commented 1 month ago

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.

vaxerski commented 1 month ago

Why? It's really slow. I'd rather provide an API to submit CPU buffers for cursors.

UjinT34 commented 1 month ago

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?