search for: pipe_sampler_view

Displaying 15 results from an estimated 15 matches for "pipe_sampler_view".

2016 Feb 15
2
[PATCH 23/23] nvc0: implement support for maxwell texture headers
....h" > #include "nv50/g80_texture.xml.h" > #include "nv50/g80_defs.xml.h" > > @@ -59,12 +60,188 @@ nvc0_create_sampler_view(struct pipe_context *pipe, > return nvc0_create_texture_view(pipe, res, templ, flags, templ->target); > } > > -struct pipe_sampler_view * > -nvc0_create_texture_view(struct pipe_context *pipe, > - struct pipe_resource *texture, > - const struct pipe_sampler_view *templ, > - uint32_t flags, > - enum pipe_texture_target targ...
2016 Feb 15
0
[PATCH 23/23] nvc0: implement support for maxwell texture headers
...include "nvc0/gm107_texture.xml.h" #include "nv50/g80_texture.xml.h" #include "nv50/g80_defs.xml.h" @@ -59,12 +60,188 @@ nvc0_create_sampler_view(struct pipe_context *pipe, return nvc0_create_texture_view(pipe, res, templ, flags, templ->target); } -struct pipe_sampler_view * -nvc0_create_texture_view(struct pipe_context *pipe, - struct pipe_resource *texture, - const struct pipe_sampler_view *templ, - uint32_t flags, - enum pipe_texture_target target) +static struct pipe_s...
2016 Feb 15
0
[PATCH 23/23] nvc0: implement support for maxwell texture headers
...t;nv50/g80_texture.xml.h" >> #include "nv50/g80_defs.xml.h" >> >> @@ -59,12 +60,188 @@ nvc0_create_sampler_view(struct pipe_context *pipe, >> return nvc0_create_texture_view(pipe, res, templ, flags, templ->target); >> } >> >> -struct pipe_sampler_view * >> -nvc0_create_texture_view(struct pipe_context *pipe, >> - struct pipe_resource *texture, >> - const struct pipe_sampler_view *templ, >> - uint32_t flags, >> - enum pipe...
2013 Aug 10
3
[PATCH 1/4] nouveau: fix number of surfaces in video buffer, use defines
...o.h index 1d6ced0..be53758 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.h +++ b/src/gallium/drivers/nouveau/nouveau_video.h @@ -10,10 +10,10 @@ struct nouveau_video_buffer { struct pipe_video_buffer base; unsigned num_planes; - struct pipe_resource *resources[3]; - struct pipe_sampler_view *sampler_view_planes[3]; - struct pipe_sampler_view *sampler_view_components[3]; - struct pipe_surface *surfaces[3]; + struct pipe_resource *resources[VL_NUM_COMPONENTS]; + struct pipe_sampler_view *sampler_view_planes[VL_NUM_COMPONENTS]; + struct pipe_sampler_view *sampler_view_...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...m_viewports, viewports); > +} > + > +static void > +tegra_set_sampler_views(struct pipe_context *pcontext, > + unsigned shader, > + unsigned start_slot, > + unsigned num_views, > + struct pipe_sampler_view **pviews) > +{ > + struct pipe_sampler_view *views[PIPE_MAX_SHADER_SAMPLER_VIEWS]; > + struct tegra_context *context = to_tegra_context(pcontext); > + unsigned i; > + > + for (i = 0; i < num_views; i++) > + views[i] = tegra_sampler_view_...
2014 Nov 27
7
[RFC] tegra: Initial support
...ontext = to_tegra_context(pcontext); + + context->gpu->set_viewport_states(context->gpu, start_slot, + num_viewports, viewports); +} + +static void +tegra_set_sampler_views(struct pipe_context *pcontext, + unsigned shader, + unsigned start_slot, + unsigned num_views, + struct pipe_sampler_view **pviews) +{ + struct pipe_sampler_view *views[PIPE_MAX_SHADER_SAMPLER_VIEWS]; + struct tegra_context *context = to_tegra_context(pcontext); + unsigned i; + + for (i = 0; i < num_views; i++) + views[i] = tegra_sampler_view_unwrap(pviews[i]); + + context->gpu->set_sampler_views(context-&gt...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...EGIN_NV04(vp_push, SUBC_VP(0x628), 2); + PUSH_DATA (vp_push, dec->vp_data->offset >> 8); + PUSH_DATA (vp_push, dec->vp_data->size); + PUSH_KICK (vp_push); + + return &dec->base; +fail: + nv84_decoder_destroy(&dec->base); + return NULL; +} + +static struct pipe_sampler_view ** +nv84_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) +{ + struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; + return buf->sampler_view_planes; +} + +static struct pipe_sampler_view ** +nv84_video_buffer_sampler_view_components(struct pipe_video_buffer...
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...EGIN_NV04(vp_push, SUBC_VP(0x628), 2); + PUSH_DATA (vp_push, dec->vp_data->offset >> 8); + PUSH_DATA (vp_push, dec->vp_data->size); + PUSH_KICK (vp_push); + + return &dec->base; +fail: + nv84_decoder_destroy(&dec->base); + return NULL; +} + +static struct pipe_sampler_view ** +nv84_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) +{ + struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; + return buf->sampler_view_planes; +} + +static struct pipe_sampler_view ** +nv84_video_buffer_sampler_view_components(struct pipe_video_buffer...
2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...gt; new file mode 100644 > index 0000000..4ff8cf3 > --- /dev/null > +++ b/src/gallium/drivers/nv50/nv84_video.h ... > +struct nv84_video_buffer { > + struct pipe_video_buffer base; unsigned num_planes; > + struct pipe_resource *resources[VL_NUM_COMPONENTS]; > + struct pipe_sampler_view *sampler_view_planes[VL_NUM_COMPONENTS]; > + struct pipe_sampler_view *sampler_view_components[VL_NUM_COMPONENTS]; > + struct pipe_surface *surfaces[VL_NUM_COMPONENTS * 2]; > + > + struct nouveau_bo *interlaced, *full; > + int mvidx; > + unsigned frame_num, frame_num_max...
2016 Feb 15
24
[PATCH 01/23] nv50: import updated g80_defs.xml.h from rnndb
From: Ben Skeggs <bskeggs at redhat.com> Signed-off-by: Ben Skeggs <bskeggs at redhat.com> --- src/gallium/drivers/nouveau/nv50/g80_defs.xml.h | 279 ++++++++++++++++++++++++ 1 file changed, 279 insertions(+) create mode 100644 src/gallium/drivers/nouveau/nv50/g80_defs.xml.h diff --git a/src/gallium/drivers/nouveau/nv50/g80_defs.xml.h
2013 Jun 29
2
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...00000..4ff8cf3 >> --- /dev/null >> +++ b/src/gallium/drivers/nv50/nv84_video.h > ... >> +struct nv84_video_buffer { >> + struct pipe_video_buffer base; > unsigned num_planes; > >> + struct pipe_resource *resources[VL_NUM_COMPONENTS]; >> + struct pipe_sampler_view *sampler_view_planes[VL_NUM_COMPONENTS]; >> + struct pipe_sampler_view *sampler_view_components[VL_NUM_COMPONENTS]; >> + struct pipe_surface *surfaces[VL_NUM_COMPONENTS * 2]; >> + >> + struct nouveau_bo *interlaced, *full; >> + int mvidx; >> + unsigned...
2013 Jun 30
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
.../null >>> +++ b/src/gallium/drivers/nv50/nv84_video.h >> ... >>> +struct nv84_video_buffer { >>> + struct pipe_video_buffer base; >> unsigned num_planes; >> >>> + struct pipe_resource *resources[VL_NUM_COMPONENTS]; >>> + struct pipe_sampler_view *sampler_view_planes[VL_NUM_COMPONENTS]; >>> + struct pipe_sampler_view *sampler_view_components[VL_NUM_COMPONENTS]; >>> + struct pipe_surface *surfaces[VL_NUM_COMPONENTS * 2]; >>> + >>> + struct nouveau_bo *interlaced, *full; >>> + int mvidx; &g...
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
2010 Aug 06
4
nv vpe video decoder
Hello, I have my work on the nv vpe video decoder in a functional state. In case you didn't know this decoder accelerates mpeg2 video at the idct/mc level. I have verified that it works on nv40 hardware. I believe it works on nv30 hardware (and maybe some earlier hardware), but I cannot verify since I have none. I will reply with patches against the kernel, drm, ddx and mesa for
2014 Jan 13
20
[PATCH 00/19] nv50: add sampler2DMS/GP support to get OpenGL 3.2
OK, so there's a bunch of stuff in here. The geometry stuff is based on the work started by Bryan Cain and Christoph Bumiller. Patches 01-12: Add support for geometry shaders and fix related issues Patches 13-14: Make it possible for fb clears to operate on texture attachments with an explicit layer set (as is allowed in gl 3.2). Patches 15-17: Make ARB_texture_multisample work