nouveau/video: avoid overwriting base codec init with template
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 24 Aug 2013 04:50:52 +0000 (00:50 -0400)
committerChristian König <christian.koenig@amd.com>
Sun, 25 Aug 2013 08:14:30 +0000 (10:14 +0200)
commit293fa4e5592896ff5f4992818e0c24a645369253
tree38987218fad6d7f9e249c3d333a6b72379fdfac5
parent56ea2c4816dbcdbdabe7718423828fdb2ee1c95b
nouveau/video: avoid overwriting base codec init with template

Commit 53e20b8b introduced the use of a template to initialize some
common fields. Move this copying of fields to before the common vp3
fields are initialized.

Reported-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/nv50/nv98_video.c
src/gallium/drivers/nvc0/nvc0_video.c