[Mesa-dev] [PATCH 09/14] radeon: just don't map VRAM buffers at all

Marek Olšák maraeo at gmail.com
Tue Feb 4 17:26:37 CET 2014


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

Marek

On Tue, Feb 4, 2014 at 4:17 PM, Christian König <deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
>  src/gallium/drivers/radeon/r600_texture.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index 878b26f..eb1e191 100644
> --- a/src/gallium/drivers/radeon/r600_texture.c
> +++ b/src/gallium/drivers/radeon/r600_texture.c
> @@ -911,8 +911,8 @@ static void *r600_texture_transfer_map(struct pipe_context *ctx,
>         if (rtex->surface.level[level].mode >= RADEON_SURF_MODE_1D)
>                 use_staging_texture = TRUE;
>
> -       /* Untiled buffers in VRAM, which is slow for CPU reads */
> -       if ((usage & PIPE_TRANSFER_READ) && !(usage & PIPE_TRANSFER_MAP_DIRECTLY) &&
> +       /* Untiled buffers in VRAM, which is slow for CPU reads and writes */
> +       if (!(usage & PIPE_TRANSFER_MAP_DIRECTLY) &&
>             (rtex->resource.domains == RADEON_DOMAIN_VRAM)) {
>                 use_staging_texture = TRUE;
>         }
> --
> 1.8.3.2
>
> _______________________________________________
> 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