[Mesa-dev] [PATCH 5/6] radeonsi: copy r600_get_timestamp
Marek Olšák
maraeo at gmail.com
Sat Aug 10 09:15:20 PDT 2013
Reviewed-by: Marek Olšák <maraeo at gmail.com>
Marek
On Fri, Aug 9, 2013 at 11:59 AM, Niels Ole Salscheider
<niels_ole at salscheider-online.de> wrote:
> Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>
> ---
> src/gallium/drivers/radeonsi/radeonsi_pipe.c | 9 +++++++++
> 1 Datei geändert, 9 Zeilen hinzugefügt(+)
>
> diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> index 3ba8232..7ae5598 100644
> --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> @@ -779,6 +779,14 @@ static int r600_init_tiling(struct r600_screen *rscreen)
> return evergreen_interpret_tiling(rscreen, tiling_config);
> }
>
> +static uint64_t r600_get_timestamp(struct pipe_screen *screen)
> +{
> + struct r600_screen *rscreen = (struct r600_screen*)screen;
> +
> + return 1000000 * rscreen->ws->query_value(rscreen->ws, RADEON_TIMESTAMP) /
> + rscreen->info.r600_clock_crystal_freq;
> +}
> +
> static unsigned radeon_family_from_device(unsigned device)
> {
> switch (device) {
> @@ -830,6 +838,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws)
> rscreen->screen.get_shader_param = r600_get_shader_param;
> rscreen->screen.get_paramf = r600_get_paramf;
> rscreen->screen.get_compute_param = r600_get_compute_param;
> + rscreen->screen.get_timestamp = r600_get_timestamp;
> rscreen->screen.is_format_supported = si_is_format_supported;
> rscreen->screen.context_create = r600_create_context;
> rscreen->screen.fence_reference = r600_fence_reference;
> --
> 1.7.11.7
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list