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>
if (!dec)
return NULL;
dec->client = screen->client;
+ dec->base = *templ;
nouveau_vp3_decoder_init_common(&dec->base);
dec->bsp_idx = 5;
for (i = 0; i < 5; i++)
PUSH_DATA (push[2], nv04_data.vram);
- dec->base = *templ;
dec->base.context = context;
dec->base.decode_bitstream = nv98_decoder_decode_bitstream;
if (!dec)
return NULL;
dec->client = screen->client;
+ dec->base = *templ;
nouveau_vp3_decoder_init_common(&dec->base);
if (!kepler) {
BEGIN_NVC0(push[2], SUBC_PPP(NV01_SUBCHAN_OBJECT), 1);
PUSH_DATA (push[2], dec->ppp->handle);
- dec->base = *templ;
dec->base.context = context;
dec->base.decode_bitstream = nvc0_decoder_decode_bitstream;