[Mesa-dev] [PATCH 4/4] gallium/radeon: update documentation of buffer_get_virtual_address

Marek Olšák maraeo at gmail.com
Fri Sep 30 08:29:25 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Sep 29, 2016 at 6:35 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> ---
>  src/gallium/drivers/radeon/radeon_winsys.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
> index dcbebe0..d248004 100644
> --- a/src/gallium/drivers/radeon/radeon_winsys.h
> +++ b/src/gallium/drivers/radeon/radeon_winsys.h
> @@ -500,20 +500,23 @@ struct radeon_winsys {
>       * \return          true on success.
>       */
>      bool (*buffer_get_handle)(struct pb_buffer *buf,
>                                unsigned stride, unsigned offset,
>                                unsigned slice_size,
>                                struct winsys_handle *whandle);
>
>      /**
>       * Return the virtual address of a buffer.
>       *
> +     * When virtual memory is not in use, this is the offset relative to the
> +     * relocation base (non-zero for sub-allocated buffers).
> +     *
>       * \param buf       A winsys buffer object
>       * \return          virtual address
>       */
>      uint64_t (*buffer_get_virtual_address)(struct pb_buffer *buf);
>
>      /**
>       * Query the initial placement of the buffer from the kernel driver.
>       */
>      enum radeon_bo_domain (*buffer_get_initial_domain)(struct pb_buffer *buf);
>
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list