[Mesa-dev] [PATCH] gallium/dri: Support DRI Image extension version 6 (v3)

2013-11-25 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Pick out the correct gl_context pointer v3: Don't leak pipe_resources on error path Set img->dri_format correctly --- src/gallium/state_trackers/dri/drm/dri2.c | 72 ++- 1 file changed, 71 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH] gallium/radeon: Implement hooks for DRI Image 7 (v2)

2013-11-24 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Fix transliteration of lseek arguments Ignore busy return from RADEON_GEM_BUSY ioctl; we're only after the domain --- src/gallium/targets/r300/common/drm_target.c | 27 +- src/gallium/targets/r600/common/drm_target.c | 16 src/galli

[Mesa-dev] [PATCH] gallium/dri: Support DRI Image extension version 7 (v3)

2013-11-24 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Fix up queryImage return for ATTRIB_FD Use driver_descriptor.configuration to determine whether the driver supports DMA-BUF import/export. v3: Really, truly, fix up queryImage return for ATTRIB_FD --- src/gallium/include/state_tracker/drm_driver.h

[Mesa-dev] [PATCH] gallium/dri: Support DRI Image extension version 6 (v2)

2013-11-24 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Pick out the correct gl_context pointer; now passes associated piglit --- src/gallium/state_trackers/dri/drm/dri2.c | 72 ++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2

[Mesa-dev] [PATCH] gallium/dri: Support DRI Image extension version 7 (v3)

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Fix up queryImage return for ATTRIB_FD Use driver_descriptor.configuration to determine whether the driver supports DMA-BUF import/export. v3: Really, truly, fix up queryImage return for ATTRIB_FD --- Now actually contains all the changes describe

[Mesa-dev] [PATCH 0/9] DRI Image 7 support for gallium

2013-11-20 Thread christopher . halse . rogers
Now includes support for Image 6 as a bonus feature, and 7 is only exposed on the gallium drivers which support dma-buf import/export. Still useful for Wayland-Prime and Mir, now also useful for DRI3000 ___ mesa-dev mailing list mesa-dev@lists.freedeskt

[Mesa-dev] [PATCH 9/9] svga/winsys: Implement surface sharing using prime fd handles

2013-11-20 Thread christopher . halse . rogers
From: Thomas Hellstrom This needs a prime-aware vmwgfx kernel module to work properly. (With additions by Christopher James Halse Rogers ) --- src/gallium/targets/dri-vmwgfx/target.c | 13 + src/gallium/winsys/svga/drm/vmw_screen_dri.c | 79 +--- 2 files changed

[Mesa-dev] [PATCH 4/9] gallium/dri: Support DRI Image extension version 7 (v2)

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers v2: Fix up queryImage return for ATTRIB_FD Use driver_descriptor.configuration to determine whether the driver supports DMA-BUF import/export. --- src/gallium/include/state_tracker/drm_driver.h | 2 + src/gallium/state_trackers/dri/drm/dri2.c |

[Mesa-dev] [PATCH 8/9] gallium/radeon: Implement hooks for DRI Image 7

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/targets/r300/common/drm_target.c | 27 +- src/gallium/targets/r600/common/drm_target.c | 16 src/gallium/targets/radeonsi/common/drm_target.c | 16 src/gallium/winsys/radeon/drm/radeon_drm_bo.c| 107 +++

[Mesa-dev] [PATCH 7/9] radeon: Rename bo_handles hashtable to match its actual contents.

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers It's a map of GEM name->bo, so identify it as such --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeo

[Mesa-dev] [PATCH 5/9] nouveau: Support DRI Image 7 extension

2013-11-20 Thread christopher . halse . rogers
From: Maarten Lankhorst --- src/gallium/drivers/nouveau/nouveau_screen.c | 11 +-- src/gallium/targets/dri-nouveau/target.c | 18 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nou

[Mesa-dev] [PATCH 1/9] gallium/dri: Support DRI Image extension version 6

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/state_trackers/dri/drm/dri2.c | 72 ++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 868cd25..bc6ca0a 100

[Mesa-dev] [PATCH 6/9] ilo: Support DRI Image 7

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/targets/dri-ilo/target.c| 19 ++- src/gallium/winsys/intel/drm/intel_drm_winsys.c | 2 -- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/gallium/targets/dri-ilo/target.c b/src/gallium/targets/

[Mesa-dev] [PATCH 3/9] gallium/dri2: Set winsys_handle type to KMS for stride query.

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Otherwise the default is TYPE_SHARED, which will flink the bo. This seems rather unnecessary for a simple stride query. --- src/gallium/state_trackers/dri/drm/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c

[Mesa-dev] [PATCH 2/9] gallium/winsys/drm: Prepare for passing prime fds in winsys_handle

2013-11-20 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/freedreno/freedreno_screen.c | 5 + src/gallium/drivers/nouveau/nouveau_screen.c | 6 ++ src/gallium/include/state_tracker/drm_driver.h| 9 ++--- src/gallium/state_trackers/dri/drm/dri2.c |

[Mesa-dev] [RFC]: __DRIbuffer in the multi-winsys world

2013-11-03 Thread christopher . halse . rogers
From: Christopher James Halse Rogers With DRI3 and the various EGL loaders, GEM names are no longer the lingua franca of winsys integration. Passing around GEM names in the __DRIbuffer struct is getting passé. Attached is a rough first pass at what passing GEM handles rather than names around in

[Mesa-dev] [PATCH 2/7] gallium/dri2: Set winsys_handle type to KMS for stride query.

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Otherwise the default is TYPE_SHARED, which will flink the bo. This seems rather unnecessary for a simple stride query. --- src/gallium/state_trackers/dri/drm/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c

[Mesa-dev] [PATCH 7/7] gallium/radeon: Implement hooks for DRI Image 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 107 -- 1 file changed, 83 insertions(+), 24 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 5ddbc00..9

[Mesa-dev] [PATCH 5/7] ilo: Support DRI Image 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/winsys/intel/drm/intel_drm_winsys.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index 521762d..d7ec919 100644 --- a/src/gallium/winsys/

[Mesa-dev] [PATCH 4/7] nouveau: Support DRI Image 7 extension

2013-10-07 Thread christopher . halse . rogers
From: Maarten Lankhorst --- src/gallium/drivers/nouveau/nouveau_screen.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index e453556..94d1927 100644 --- a/src/gallium/dr

[Mesa-dev] [PATCH 1/7] gallium/winsys/drm: Prepare for passing prime fds in winsys_handle

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/freedreno/freedreno_screen.c | 5 + src/gallium/drivers/nouveau/nouveau_screen.c | 6 ++ src/gallium/include/state_tracker/drm_driver.h| 9 ++--- src/gallium/state_trackers/dri/drm/dri2.c |

[Mesa-dev] [PATCH] DRI Image v7 support for gallium drivers

2013-10-07 Thread christopher . halse . rogers
This is a prerequisite for the Mir EGL platform, which I'm sure everyone is excited about. It's also necessary for Wayland hybrid graphics support. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/me

[Mesa-dev] [PATCH 6/7] radeon: Rename bo_handles hashtable to match its actual contents.

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers It's a map of GEM name->bo, so identify it as such --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeo

[Mesa-dev] [PATCH 3/7] gallium/dri: Support* DRI Image extension version 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers *ish --- src/gallium/state_trackers/dri/drm/dri2.c | 118 +++--- 1 file changed, 108 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index b4f1818..a6a

[Mesa-dev] [PATCH 2/2] nouveau: Support DRI Image v7

2013-04-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/nouveau/nouveau_screen.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index e1d4ca5..1f0aa72 100644 --- a/s

[Mesa-dev] [PATCH 1/2] gallium/dri: Allow drivers to support DRI Image v7 (v2)

2013-04-26 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Enabled based on kernel drm support for dma-buf. v2: Detect dma-buf support from st/dri rather than adding a PIPE_CAP_PRIME --- src/gallium/drivers/freedreno/freedreno_screen.c | 5 + src/gallium/drivers/nouveau/nouveau_screen.c | 6 + src/galliu

[Mesa-dev] [PATCH v2]: gallium DRI Image v7 support

2013-04-26 Thread christopher . halse . rogers
This reworks the DRI Image v7 support to remove winsys-specific code from the pipe drivers. In return, this will incorrectly enable v7 support when the kernel drm has prime support but the driver does not. ___ mesa-dev mailing list mesa-dev@lists.freedes

[Mesa-dev] [PATCH] gallium/dri: Return failures from dri2_query_image.

2013-04-22 Thread christopher . halse . rogers
From: Christopher James Halse Rogers resource_get_handle can fail, so we might as well bubble that failure up to the client. --- src/gallium/state_trackers/dri/drm/dri2.c | 39 +++ 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/gallium/state_track

[Mesa-dev] [PATCH] gallium/dri2: Set winsys_handle type to KMS for stride query.

2013-04-22 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Otherwise the default is TYPE_SHARED, which will flink the bo. This seems unnecessary for a simple stride query. --- src/gallium/state_trackers/dri/drm/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src

[Mesa-dev] [PATCH 4/4] radeon: Enable DRI Image 7 support

2013-04-21 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/r300/r300_screen.c| 8 ++- src/gallium/drivers/r300/r300_texture.c | 2 +- src/gallium/drivers/r600/r600_pipe.c | 7 ++- src/gallium/drivers/r600/r600_texture.c | 2 +- src/gallium/drive

[Mesa-dev] [PATCH 3/4] radeon: Rename bo_handles hashtable to match its actual contents.

2013-04-21 Thread christopher . halse . rogers
From: Christopher James Halse Rogers It's a map of GEM name->bo, so identify it as such --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeo

[Mesa-dev] [PATCH 2/4] nouveau: Populate PIPE_CAP_PRIME, enabling DRI Image 7 support

2013-04-21 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/nouveau/nouveau_screen.c | 19 ++- src/gallium/drivers/nouveau/nouveau_screen.h | 2 ++ src/gallium/drivers/nv30/nv30_screen.c | 6 +- src/gallium/drivers/nv50/nv50_screen.c | 5 - src/gallium/dri

[Mesa-dev] [PATCH 1/4] gallium/dri: Allow drivers to support DRI Image v7

2013-04-21 Thread christopher . halse . rogers
From: Christopher James Halse Rogers This is only exposed by drivers wich support the new PIPE_CAP_PRIME parameter, for PRIME import/export. --- This stubs out texture_from_renderbuffer, which I don't care about, but that looks like it wouldn't be terribly painful to implement if it's a blocker

[Mesa-dev] [RFC] egl/dri2: Add Mir platform backend

2013-03-04 Thread christopher . halse . rogers
From: Christopher James Halse Rogers A first pass at a Mir platform for EGL. This is RFC mainly because I hope to shortly make Mir's API less painfully pointless-callback-based. There's no point in committing this as-is, but it's hopefully still useful to review. --- configure.ac

[Mesa-dev] [PATCH] i965: Fix leak in blorp CopyTexSubImage2D

2013-02-15 Thread christopher . halse . rogers
From: Christopher James Halse Rogers _mesa_delete_renderbuffer does not call the driver-specific renderbuffer delete function, so the blorp code was leaking the Intel-specific bits, including some GEM objects. Call the renderbuffer's ->Delete() method instead, which does the right thing. Fixes

[Mesa-dev] [PATCH 3/4] mapi: Fix x86 asm for global-dynamic TLS model.

2011-03-23 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Because the address of a thread-local variable is no longer a known fixed offset from the TCB it is not possible to run-time patch the dispatch table to load _glapi_tls_Dispatch with an immediate instruction. --- src/mapi/glapi/gen/gl_x86_asm.py | 19 +

[Mesa-dev] [PATCH 2/4] mapi: Fix x86-64 asm for global-dynamic TLS model

2011-03-23 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/mapi/glapi/gen/gl_x86-64_asm.py | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py index 11cd9af..cfe4238 100644 --- a/src/mapi/glapi/gen/gl_x86-

[Mesa-dev] [PATCH 1/4] dispatch: Use general-dynamic TLS model rather than initial-exec.

2011-03-23 Thread christopher . halse . rogers
From: Christopher James Halse Rogers The initial-exec static TLS model is inappropriate for libraries that might be dynamically loaded. Since libGL is dynamically loaded by any number of projects mesa must instead use the general-dynamic TLS model. This has apparently always been broken for pro