Displaying 5 results from an estimated 5 matches for "vp_fw".
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
..._device *dev, struct nv84_decoder *dec,
+ const char *fw1, const char *fw2)
+{
+ int ret, size1, size2 = 0;
+ struct nouveau_bo *fw;
+
+ size1 = filesize(fw1);
+ if (fw2)
+ size2 = filesize(fw2);
+ if (size1 < 0 || size2 < 0)
+ return NULL;
+
+ dec->vp_fw2_offset = align(size1, 0x100);
+
+ ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 0, dec->vp_fw2_offset + size2, NULL, &fw);
+ if (ret)
+ return NULL;
+ ret = nouveau_bo_map(fw, NOUVEAU_BO_WR, dec->client);
+ if (ret)
+ goto error;
+
+ ret = nv84_copy_firmware(fw1, fw->...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
..._device *dev, struct nv84_decoder *dec,
+ const char *fw1, const char *fw2)
+{
+ int ret, size1, size2 = 0;
+ struct nouveau_bo *fw;
+
+ size1 = filesize(fw1);
+ if (fw2)
+ size2 = filesize(fw2);
+ if (size1 < 0 || size2 < 0)
+ return NULL;
+
+ dec->vp_fw2_offset = align(size1, 0x100);
+
+ ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 0, dec->vp_fw2_offset + size2, NULL, &fw);
+ if (ret) return NULL;
+ ret = nouveau_bo_map(fw, NOUVEAU_BO_WR, dec->client);
+ if (ret) goto error;
+
+ ret = nv84_copy_firmware(fw1, fw->map, size1);
+...
2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...fctx *bsp_bufctx, *vp_bufctx;
Then the struct will look a bit cleaner
struct nv84_decoder {
struct pipe_video_decoder base;
struct nouveau_client *client;
struct nv84_decoder_eng engs[NV84_DECODER_ENG_NUM];
> +
> + struct nouveau_bo *bsp_fw, *bsp_data;
> + struct nouveau_bo *vp_fw, *vp_data;
> + struct nouveau_bo *mbring, *vpring;
> +
> + /*
> + * states:
> + * 0: init
> + * 1: vpring/mbring cleared, bsp is ready
> + * 2: bsp is done, vp is ready
> + * and then vp it back to 1
> + */
> + struct nouveau_bo *fence;
>...
2013 Jun 29
2
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...truct will look a bit cleaner
> struct nv84_decoder {
> struct pipe_video_decoder base;
> struct nouveau_client *client;
> struct nv84_decoder_eng engs[NV84_DECODER_ENG_NUM];
>
>
>> +
>> + struct nouveau_bo *bsp_fw, *bsp_data;
>> + struct nouveau_bo *vp_fw, *vp_data;
>> + struct nouveau_bo *mbring, *vpring;
>> +
>> + /*
>> + * states:
>> + * 0: init
>> + * 1: vpring/mbring cleared, bsp is ready
>> + * 2: bsp is done, vp is ready
>> + * and then vp it back to 1
>> + */
>...
2013 Jun 30
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...t; struct nv84_decoder {
>> struct pipe_video_decoder base;
>> struct nouveau_client *client;
>> struct nv84_decoder_eng engs[NV84_DECODER_ENG_NUM];
>>
>>
>>> +
>>> + struct nouveau_bo *bsp_fw, *bsp_data;
>>> + struct nouveau_bo *vp_fw, *vp_data;
>>> + struct nouveau_bo *mbring, *vpring;
>>> +
>>> + /*
>>> + * states:
>>> + * 0: init
>>> + * 1: vpring/mbring cleared, bsp is ready
>>> + * 2: bsp is done, vp is ready
>>> + * and then vp it...