All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [Bug 89969] vaDriverInit fails with gallium/nouveau driver
Date: Fri, 17 Jul 2015 23:08:26 +0000	[thread overview]
Message-ID: <bug-89969-8800-3Isgrpv7AW@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-89969-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>


[-- Attachment #1.1: Type: text/plain, Size: 1674 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=89969

--- Comment #8 from Julien Isorce <julien.isorce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> ---
Created attachment 117214
  --> https://bugs.freedesktop.org/attachment.cgi?id=117214&action=edit
WIP - nouveau: add support for chunk decoding


A: resize buffer in nvc0_decoder_bsp:
http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c#n73

B: memcpy of the data in nouveau_vp3_bsp:
http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nouveau_vp3_video_bsp.c#n294

For radeon driver it both happens in ruvd_decode_bitstream.

To compare radeon to nouveau:

struct ruvd_decoder.bs_buffers is an array of struct rvid_buffer that hold a
ref on struct r600_resource, aka pipe_resource.

struct nouveau_vp3_decoder.bsp_bo is an array of struct nouveau_bo (which comes
from libdrm/nouveau library)

So if I am right, in the function nvc0_decoder_decode_bitstream it should
resize the nouveau_bo buffers and store current data, i.e. A and B. 

So I made a patch that first splits nvc0_decoder_bsp to extract A and B into a
new function nvc0_decoder_bsp_next_chunk. The remaining part of
nvc0_decoder_bsp go to nvc0_decoder_bsp_end_frame.

I just realize the patch is missing the preserving part while resizing buffers
(equivalent of the memcpy in rvid_resize_buffer
http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/radeon/radeon_video.c#n100)
that could explain why it is still not working.

But I wanted to know if I am on the right track or not ?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3024 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2015-07-17 23:08 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 15:14 [Bug 89969] New: vaDriverInit fails with gallium/nouveau driver bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-89969-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2015-04-09 15:35   ` [Bug 89969] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 15:48   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 16:02   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 16:10   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 17:02   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 17:13   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-04-09 18:42   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-17 23:08   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ [this message]
2015-07-17 23:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-17 23:16   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-18 15:40   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-24 20:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-24 20:17   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-07-27 17:30   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-25 16:05   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:23   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:24   ` [Bug 89969] nouveau: add support for chunk decoding in order to support vaapi (st/va) bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:46   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:47   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:48   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:49   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:49   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:51   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:52   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:56   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-08-26 17:58   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:27   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:28   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:29   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2015-09-16 12:32   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2016-02-05 17:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-89969-8800-3Isgrpv7AW@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon-cc+yj3umiyqdupfqwhejaq@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.