Displaying 6 results from an estimated 6 matches for "surf_templ".
2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...e_a = PIPE_SWIZZLE_ONE;
> +
> + buffer->sampler_view_components[component] = pipe->create_sampler_view(pipe, res, &sv_templ);
> + if (!buffer->sampler_view_components[component])
> + goto error;
> + }
> + }
> +
> + memset(&surf_templ, 0, sizeof(surf_templ));
> + for (j = 0; j < 2; ++j) {
for (j = 0; j < buffer->num_planes; ++j) {
> + surf_templ.format = buffer->resources[j]->format;
> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 0;
> + buffer->surfaces[j * 2]...
2013 Jun 29
2
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...+
>> + buffer->sampler_view_components[component] = pipe->create_sampler_view(pipe, res, &sv_templ);
>> + if (!buffer->sampler_view_components[component])
>> + goto error;
>> + }
>> + }
>> +
>> + memset(&surf_templ, 0, sizeof(surf_templ));
>> + for (j = 0; j < 2; ++j) {
> for (j = 0; j < buffer->num_planes; ++j) {
>
>> + surf_templ.format = buffer->resources[j]->format;
>> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 0;
>> + bu...
2013 Jun 30
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...ffer->sampler_view_components[component] = pipe->create_sampler_view(pipe, res, &sv_templ);
>>> + if (!buffer->sampler_view_components[component])
>>> + goto error;
>>> + }
>>> + }
>>> +
>>> + memset(&surf_templ, 0, sizeof(surf_templ));
>>> + for (j = 0; j < 2; ++j) {
>> for (j = 0; j < buffer->num_planes; ++j) {
>>
>>> + surf_templ.format = buffer->resources[j]->format;
>>> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 0...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...deo_buffer *
+nv84_video_buffer_create(struct pipe_context *pipe,
+ const struct pipe_video_buffer *template)
+{
+ struct nv84_video_buffer *buffer;
+ struct pipe_resource templ;
+ unsigned i, j, component;
+ struct pipe_sampler_view sv_templ;
+ struct pipe_surface surf_templ;
+ struct nv50_miptree *mt0, *mt1;
+ struct nouveau_bo *empty = NULL;
+ struct nouveau_screen *screen = &((struct nv50_context *)pipe)->screen->base;
+ union nouveau_bo_config cfg;
+ unsigned bo_size;
+
+ if (getenv("XVMC_VL"))
+ return vl_video_buffer_create(pi...
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...deo_buffer *
+nv84_video_buffer_create(struct pipe_context *pipe,
+ const struct pipe_video_buffer *template)
+{
+ struct nv84_video_buffer *buffer;
+ struct pipe_resource templ;
+ unsigned i, j, component;
+ struct pipe_sampler_view sv_templ;
+ struct pipe_surface surf_templ;
+ struct nv50_miptree *mt0, *mt1;
+ struct nouveau_bo *empty = NULL;
+ struct nouveau_screen *screen = &((struct nv50_context *)pipe)->screen->base;
+ union nouveau_bo_config cfg;
+ unsigned bo_size;
+
+ if (getenv("XVMC_VL"))
+ return vl_video_buffer_create(pi...
2013 Aug 11
10
[PATCH 00/10] Add support for MPEG2 and VC-1 on VP3/VP4 for NV98-NVAF
As it turns out, with the proprietary firmware, the VP3 and VP4 interfaces are
identical. Furthermore, this is all already implemented for nvc0. So these
patches (a) move the easily sharable bits of the nvc0 implementation into the
nouveau directory, and then (b) implement the other parts in nv50. The
non-shared parts are still largely copies, but there are some differences, not
the least of which