[Mesa-dev] Gallium interface rename proposals

Eric Anholt eric at anholt.net
Mon Sep 21 17:21:13 UTC 2020


On Sat, Sep 19, 2020 at 3:24 AM Marek Olšák <maraeo at gmail.com> wrote:
>
> Hi,
>
> I don't know if you have been following gitlab, but there are a few cleanups that I have been considering doing.
>
> Rename PIPE_TRANSFER flags to PIPE_MAP, and pipe_transfer_usage to pipe_map_flags:
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5749
>
> Other proposed renames:
>
> transfer_map -> resource_map
> transfer_unmap -> resource_unmap
> transfer_flush_region -> resource_flush_mapped_range
> draw_vbo -> draw
>
> pipe_transfer_* aux helpers -> pipe_resource_* or pipe_texture_* depending on context. We already have pipe_buffer_map.
>
> I'm inclined to keep the struct pipe_transfer name unchanged to indicate that mappings can cause internal copies.\

I'm a fan of all of these changes, it feels like they get us closer to
normal terminology in the field.


More information about the mesa-dev mailing list