Re: [PATCH 1/6] drm/radeon: force UVD buffers into VRAM on RS[78]80 v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 24, 2014 at 9:14 AM, Christian König
<deathsimple@xxxxxxxxxxx> wrote:
> From: Christian König <christian.koenig@xxxxxxx>
>
> v2: only necessary on RS[78]80
>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>

Series applied to my 3.18 tree.

Thanks,

Alex

> ---
>  drivers/gpu/drm/radeon/radeon_cs.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c
> index 1321491..c91d8c8 100644
> --- a/drivers/gpu/drm/radeon/radeon_cs.c
> +++ b/drivers/gpu/drm/radeon/radeon_cs.c
> @@ -136,10 +136,13 @@ static int radeon_cs_parser_relocs(struct radeon_cs_parser *p)
>                 priority = (r->flags & 0xf) * 2 + !!r->write_domain;
>
>                 /* the first reloc of an UVD job is the msg and that must be in
> -                  VRAM, also but everything into VRAM on AGP cards to avoid
> -                  image corruptions */
> +                  VRAM, also but everything into VRAM on AGP cards and older
> +                  IGP chips to avoid image corruptions */
>                 if (p->ring == R600_RING_TYPE_UVD_INDEX &&
> -                   (i == 0 || drm_pci_device_is_agp(p->rdev->ddev))) {
> +                   (i == 0 || drm_pci_device_is_agp(p->rdev->ddev) ||
> +                    p->rdev->family == CHIP_RS780 ||
> +                    p->rdev->family == CHIP_RS880)) {
> +
>                         /* TODO: is this still needed for NI+ ? */
>                         p->relocs[i].prefered_domains =
>                                 RADEON_GEM_DOMAIN_VRAM;
> --
> 1.9.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux