search for: resource_create

Displaying 10 results from an estimated 10 matches for "resource_create".

2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...plate->width, 2); > + templ.height0 = align(template->height, 4) / 2; > + templ.flags = NV50_RESOURCE_FLAG_VIDEO; > + templ.array_size = 2; > + > + cfg.nv50.tile_mode = 0x20; > + cfg.nv50.memtype = 0x70; > + > + buffer->resources[0] = pipe->screen->resource_create(pipe->screen, &templ); > + if (!buffer->resources[0]) > + goto error; > + > + templ.format = PIPE_FORMAT_R8G8_UNORM; > + templ.width0 /= 2; > + templ.height0 /= 2; > + buffer->resources[1] = pipe->screen->resource_create(pipe->screen, &t...
2013 Jun 29
2
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...templ.height0 = align(template->height, 4) / 2; >> + templ.flags = NV50_RESOURCE_FLAG_VIDEO; >> + templ.array_size = 2; >> + >> + cfg.nv50.tile_mode = 0x20; >> + cfg.nv50.memtype = 0x70; >> + >> + buffer->resources[0] = pipe->screen->resource_create(pipe->screen, &templ); >> + if (!buffer->resources[0]) >> + goto error; >> + >> + templ.format = PIPE_FORMAT_R8G8_UNORM; >> + templ.width0 /= 2; >> + templ.height0 /= 2; >> + buffer->resources[1] = pipe->screen->resource_cr...
2013 Jun 30
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...late->height, 4) / 2; >>> + templ.flags = NV50_RESOURCE_FLAG_VIDEO; >>> + templ.array_size = 2; >>> + >>> + cfg.nv50.tile_mode = 0x20; >>> + cfg.nv50.memtype = 0x70; >>> + >>> + buffer->resources[0] = pipe->screen->resource_create(pipe->screen, &templ); >>> + if (!buffer->resources[0]) >>> + goto error; >>> + >>> + templ.format = PIPE_FORMAT_R8G8_UNORM; >>> + templ.width0 /= 2; >>> + templ.height0 /= 2; >>> + buffer->resources[1] = pip...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...T_R8_UNORM; + templ.width0 = align(template->width, 2); + templ.height0 = align(template->height, 4) / 2; + templ.flags = NV50_RESOURCE_FLAG_VIDEO; + templ.array_size = 2; + + cfg.nv50.tile_mode = 0x20; + cfg.nv50.memtype = 0x70; + + buffer->resources[0] = pipe->screen->resource_create(pipe->screen, &templ); + if (!buffer->resources[0]) + goto error; + + templ.format = PIPE_FORMAT_R8G8_UNORM; + templ.width0 /= 2; + templ.height0 /= 2; + buffer->resources[1] = pipe->screen->resource_create(pipe->screen, &templ); + if (!buffer->resource...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...include "util/u_inlines.h" > + > +#include "state_tracker/drm_driver.h" > + > +#include "tegra/tegra_context.h" > +#include "tegra/tegra_resource.h" > +#include "tegra/tegra_screen.h" > + > +struct pipe_resource * > +tegra_resource_create(struct pipe_screen *pscreen, > + const struct pipe_resource *template) > +{ > + struct tegra_screen *screen = to_tegra_screen(pscreen); > + struct tegra_resource *resource; > + > + resource = calloc(1, sizeof(*resource)); > + if (!res...
2018 Oct 19
13
[Bug 108500] New: Crash when creating a depth buffer on GeForce 320M
...p.org/attachment.cgi?id=142101&action=edit glxinfo Every OpenGL application that wants to use a depth buffer always crashes, including glxgears: glxgears: dri2.c:906: dri2_allocate_textures: Assertion `*zsbuf' failed. I debugged the assertion with gdb: templ structure contents passed to resource_create(): $2 = {reference = {count = 0}, width0 = 300, height0 = 300, depth0 = 1, array_size = 1, format = PIPE_FORMAT_Z24X8_UNORM, target = PIPE_TEXTURE_2D, last_level = 0, nr_samples = 0, nr_storage_samples = 0, usage = 0, bind = 1, flags = 0, next = 0x0, screen = 0x0} In nv50_miptree_create() in g...
2014 Nov 27
7
[RFC] tegra: Initial support
...uot; +#include "util/u_format.h" +#include "util/u_inlines.h" + +#include "state_tracker/drm_driver.h" + +#include "tegra/tegra_context.h" +#include "tegra/tegra_resource.h" +#include "tegra/tegra_screen.h" + +struct pipe_resource * +tegra_resource_create(struct pipe_screen *pscreen, + const struct pipe_resource *template) +{ + struct tegra_screen *screen = to_tegra_screen(pscreen); + struct tegra_resource *resource; + + resource = calloc(1, sizeof(*resource)); + if (!resource) + return NULL; + + /* import scanout buffers for display */ + if...
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...T_R8_UNORM; + templ.width0 = align(template->width, 2); + templ.height0 = align(template->height, 4) / 2; + templ.flags = NV50_RESOURCE_FLAG_VIDEO; + templ.array_size = 2; + + cfg.nv50.tile_mode = 0x20; + cfg.nv50.memtype = 0x70; + + buffer->resources[0] = pipe->screen->resource_create(pipe->screen, &templ); + if (!buffer->resources[0]) + goto error; + + templ.format = PIPE_FORMAT_R8G8_UNORM; + templ.width0 /= 2; + templ.height0 /= 2; + buffer->resources[1] = pipe->screen->resource_create(pipe->screen, &templ); + if (!buffer->resource...
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
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