nouveau: rework reference frame handling
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 10 Sep 2014 11:20:53 +0000 (13:20 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Sep 2014 03:18:05 +0000 (23:18 -0400)
commita41aad843108cec1901c88a76d5ceb4ede2e062b
tree7c5de657760d31c73e3480b71b9fcda0000e70bd
parent121ceb38f45daacc938349d9d5aa82776b78dbab
nouveau: rework reference frame handling

Fixes a regression from "nouveau/vdec: small fixes to h264 handling"

New picking order for frames:
 1. Vidbuf pointer matches.
 2. Take the first kicked ref.
 3. If that fails, take a ref that has a different last_used.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nouveau_vp3_video_vp.c
src/gallium/drivers/nouveau/nv50/nv98_video_vp.c
src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c