Displaying 12 results from an estimated 12 matches for "create_surface".
2018 Nov 28
0
[PATCH 3/6] drm/qxl: track primary bo
...NULL;
}
void qxl_io_create_primary(struct qxl_device *qdev, struct qxl_bo *bo)
{
struct qxl_surface_create *create;
+ if (WARN_ON(qdev->primary_bo))
+ return;
+
DRM_DEBUG_DRIVER("qdev %p, ram_header %p\n", qdev, qdev->ram_header);
create = &qdev->ram_header->create_surface;
create->format = bo->surf.format;
@@ -397,7 +400,7 @@ void qxl_io_create_primary(struct qxl_device *qdev, struct qxl_bo *bo)
create->type = QXL_SURF_TYPE_PRIMARY;
wait_for_io_cmd(qdev, 0, QXL_IO_CREATE_PRIMARY_ASYNC);
- qdev->primary_created = true;
+ qdev->primary_bo = bo;...
2018 Dec 12
0
[PATCH v2 12/18] drm/qxl: track primary bo
...NULL;
}
void qxl_io_create_primary(struct qxl_device *qdev, struct qxl_bo *bo)
{
struct qxl_surface_create *create;
+ if (WARN_ON(qdev->primary_bo))
+ return;
+
DRM_DEBUG_DRIVER("qdev %p, ram_header %p\n", qdev, qdev->ram_header);
create = &qdev->ram_header->create_surface;
create->format = bo->surf.format;
@@ -397,7 +400,7 @@ void qxl_io_create_primary(struct qxl_device *qdev, struct qxl_bo *bo)
create->type = QXL_SURF_TYPE_PRIMARY;
wait_for_io_cmd(qdev, 0, QXL_IO_CREATE_PRIMARY_ASYNC);
- qdev->primary_created = true;
+ qdev->primary_bo = bo;...
2011 Nov 07
1
Re: OpenGL issues on OSX (wine 1.3.21)
I just tried the "qtgears" OpenGL demo from http://lab.bachem-it.com/opengl/qtgears (source is included) on my MacBook and I got this error:
DIAG: apple_glx_create_context: ac 0x41931730 ac->context_obj 0x4104ce00
DIAG: apple_glx_drawable_create: new drawable 0x4088a000
DIAG: create_surface: created a surface for drawable 0x600010 with uid 153
DIAG: surface_make_current: ac->context_obj 0x4104ce00 s->surface_id 21
DIAG: surface_make_current: drawable 0x600010
DIAG: applegl_bind_context: error NO
fixme:wgl:X11DRV_wglGetPixelFormatAttribivARB unsupported 2008 WGL Attribute
DIAG: a...
2013 Jun 29
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...(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] = pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
> + if (!buffer->surfaces[j * 2])
> + goto error;
> +
> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 1;
> + buffer->surfaces[j * 2 + 1] = pipe->create_surface(pipe, buffer->resources...
2013 Jun 29
2
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...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] = pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
>> + if (!buffer->surfaces[j * 2])
>> + goto error;
>> +
>> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 1;
>> + buffer->surfaces[j * 2 + 1] = pipe->create_surface(pipe,...
2013 Jun 30
0
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...; 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] = pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
>>> + if (!buffer->surfaces[j * 2])
>>> + goto error;
>>> +
>>> + surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 1;
>>> + buffer->surfaces[j * 2 + 1] = pipe->c...
2011 Nov 14
2
Re: OpenGL issues on OSX (wine 1.3.21)
...text Context 0x30de568 have (vis:0x40420b50):
trace:wgl:describeContext - FBCONFIG_ID 0x76
trace:wgl:describeContext - VISUAL_ID 0xc5
trace:wgl:X11DRV_wglMakeCurrent make current for dis 0x4081ce00, drawable 0x600008, ctx 0x404880d0
DIAG: apple_glx_drawable_create: new drawable 0x41073e00
DIAG: create_surface: created a surface for drawable 0x600008 with uid 25
DIAG: surface_make_current: ac->context_obj 0x4085d800 s->surface_id 13
DIAG: surface_make_current: drawable 0x600008
DIAG: applegl_bind_context: error NO
trace:wgl:X11DRV_wglMakeCurrent returning True
trace:wgl:X11DRV_wglSwapIntervalEXT (...
2013 Jun 27
4
[PATCH] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...goto error;
+ }
+ }
+
+ memset(&surf_templ, 0, sizeof(surf_templ));
+ for (j = 0; j < 2; ++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] = pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
+ if (!buffer->surfaces[j * 2])
+ goto error;
+
+ surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 1;
+ buffer->surfaces[j * 2 + 1] = pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
+...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...lush = tegra_flush;
> +
> + context->base.create_sampler_view = tegra_create_sampler_view;
> + context->base.sampler_view_destroy = tegra_sampler_view_destroy;
> +
> + context->base.flush_resource = tegra_flush_resource;
> +
> + context->base.create_surface = tegra_create_surface;
> + context->base.surface_destroy = tegra_surface_destroy;
> +
> + context->base.transfer_map = tegra_transfer_map;
> + context->base.transfer_unmap = tegra_transfer_unmap;
> + context->base.transfer_inline_write = tegra_tra...
2013 Jun 30
0
[PATCH v2] nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
...o error;
+ }
+ }
+
+ memset(&surf_templ, 0, sizeof(surf_templ));
+ for (j = 0; j < 2; ++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] =
+ pipe->create_surface(pipe, buffer->resources[j], &surf_templ);
+ if (!buffer->surfaces[j * 2])
+ goto error;
+
+ surf_templ.u.tex.first_layer = surf_templ.u.tex.last_layer = 1;
+ buffer->surfaces[j * 2 + 1] =
+ pipe->create_surface(pipe, buffer->resources[j], &surf_...
2014 Nov 27
7
[RFC] tegra: Initial support
...context->base.clear = tegra_clear;
+ context->base.flush = tegra_flush;
+
+ context->base.create_sampler_view = tegra_create_sampler_view;
+ context->base.sampler_view_destroy = tegra_sampler_view_destroy;
+
+ context->base.flush_resource = tegra_flush_resource;
+
+ context->base.create_surface = tegra_create_surface;
+ context->base.surface_destroy = tegra_surface_destroy;
+
+ context->base.transfer_map = tegra_transfer_map;
+ context->base.transfer_unmap = tegra_transfer_unmap;
+ context->base.transfer_inline_write = tegra_transfer_inline_write;
+
+ return &context->b...
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