Re: [Mesa-dev] [PATCH] Don't use libudev for glx/dri3

2013-12-14 Thread Daniel Vetter
On Sat, Dec 14, 2013 at 3:33 AM, Kenneth Graunke wrote: > On 11/18/2013 12:58 PM, Emil Velikov wrote: >> On 18/11/13 01:08, Keith Packard wrote: >>> libudev doesn't have a stable API/ABI, and if the application wants to use >>> one >>> version, we'd best not load another into libGL. >>> >>> Signe

Re: [Mesa-dev] [PATCH 15/18] gallium: Add __DRIimageDriverExtension support to gallium

2013-12-14 Thread Marek Olšák
Some of the code seems to be copy-pasted from dri2_drawable_process_buffers. The MSAA color and depth-stencil texture allocation could be moved to a common function. Marek On Sat, Dec 14, 2013 at 2:25 AM, Keith Packard wrote: > Provide the hook to pull textures out of __DRIimage structures and u

[Mesa-dev] [Bug 72708] New: Master fails to build with older gcc due to -msse4.1

2013-12-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72708 Priority: medium Bug ID: 72708 Assignee: mesa-dev@lists.freedesktop.org Summary: Master fails to build with older gcc due to -msse4.1 Severity: normal Classification: Unclassified

[Mesa-dev] [PATCH] st/mesa: use pipe_sampler_view_release()

2013-12-14 Thread Jonathan Liu
This fixes a crash where old_view->context was already freed in the pipe_sampler_view_reference function contained in src/gallium/auxiliary/utils/u_inlines.h. As a result, the sampler_view_destroy function pointer contained 0xfeeefeee indicating freed heap memory. Signed-off-by: Jonathan Liu ---

[Mesa-dev] [PATCH 2/2] glx/dri2: Add support for adaptive vsync

2013-12-14 Thread Lauri Kasanen
There is a GLX extension for this behavior, glx_swap_control_tear, which mesa doesn't support ATM. But as usual, even after it becomes supported, there will be thousands of applications that won't add support for it, necessitating the need for a user override. Signed-off-by: Lauri Kasanen ---

[Mesa-dev] [PATCH 1/2] glx: Simplify __glxGetMscRate, it only needs the screen, not a drawable

2013-12-14 Thread Lauri Kasanen
Useful in its own right, but also needed for adaptive vsync. Signed-off-by: Lauri Kasanen --- src/glx/dri_common.c | 2 +- src/glx/glxclient.h | 2 +- src/glx/glxcmds.c| 6 ++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c inde

Re: [Mesa-dev] [PATCH] st/mesa: use pipe_sampler_view_release()

2013-12-14 Thread Brian Paul
On 12/14/2013 07:15 AM, Jonathan Liu wrote: This fixes a crash where old_view->context was already freed in the pipe_sampler_view_reference function contained in src/gallium/auxiliary/utils/u_inlines.h. As a result, the sampler_view_destroy function pointer contained 0xfeeefeee indicating freed h

[Mesa-dev] [PATCH V3 00/10] Newbie Project : Implement ARB_clear_buffer_object

2013-12-14 Thread Pi Tabred
Hello, third version of the patches to implement "ARB_clear_buffer_object". I hope I got everything this time. Best Regards, Pi Tabred Pi Tabred (10): mesa: Add infrastructure for GL_ARB_clear_buffer_object mesa: Make validate_texbuffer_format function available externally mesa: Modify for

[Mesa-dev] [PATCH V3 04/10] mesa: get_texbuffer_format(): differentiate between core and compat context

2013-12-14 Thread Pi Tabred
alpha, lumincance and intensity formats are illegal in a core context. Add a check to return MESA_FORMAT_NONE if one of those is requested within a core context. --- src/mesa/main/teximage.c | 167 --- 1 file changed, 87 insertions(+), 80 deletions(-) d

[Mesa-dev] [PATCH V3 07/10] mesa: Implement functions for clear_buffer_object extensions

2013-12-14 Thread Pi Tabred
--- src/mesa/main/bufferobj.c | 271 ++ src/mesa/main/bufferobj.h | 4 + 2 files changed, 275 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 820cbcb..21f0ae1 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa

[Mesa-dev] [PATCH V3 08/10] Add ARB_clear_buffer_object to list of supported extensions

2013-12-14 Thread Pi Tabred
--- src/mesa/main/extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index cc85f78..2404d38 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -82,6 +82,7 @@ static const struct extension extension_table

[Mesa-dev] [PATCH V3 05/10] mesa: Add bufferobj_range_mapped function

2013-12-14 Thread Pi Tabred
Add function to test if the buffer is already mapped and if so, if the mapped range overlaps the given range. Modify the _mesa_InvalidateBufferSubData function to use the new function. Enable buffer_object_subdata_range_good() to use bufferobj_range_mapped --- src/mesa/main/bufferobj.c | 91 +

[Mesa-dev] [PATCH V3 09/10] Modify release notes to include ARB_clear_buffer_object extension

2013-12-14 Thread Pi Tabred
--- docs/relnotes/10.1.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/relnotes/10.1.html b/docs/relnotes/10.1.html index dfb0969..778ae6a 100644 --- a/docs/relnotes/10.1.html +++ b/docs/relnotes/10.1.html @@ -45,6 +45,7 @@ Note: some of the new features are only available with cert

[Mesa-dev] [PATCH V3 01/10] mesa: Add infrastructure for GL_ARB_clear_buffer_object

2013-12-14 Thread Pi Tabred
- add xml file for extension - add reference in gl_API.xml - add pointer to device driver function table (dd.h) - update dispatch_sanity.cpp --- src/mapi/glapi/gen/ARB_clear_buffer_object.xml | 50 ++ src/mapi/glapi/gen/gl_API.xml | 6 +++- src/mesa/ma

[Mesa-dev] [PATCH V3 03/10] mesa: Modify format validation to check for extension not context version

2013-12-14 Thread Pi Tabred
--- src/mesa/main/teximage.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 0d436b2..f92dc1a 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -4054,15 +4054,10 @@ _mesa_validate_texbuffer

[Mesa-dev] [PATCH V3 10/10] mesa: Cleanup mesa/main/bufferobj.h (column wrapping and space between lines)

2013-12-14 Thread Pi Tabred
--- src/mesa/main/bufferobj.h | 59 --- 1 file changed, 45 insertions(+), 14 deletions(-) diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index b38519f..71988b0 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@

[Mesa-dev] [PATCH V3 06/10] mesa: Modify get_buffer() to allow for a variable error code

2013-12-14 Thread Pi Tabred
--- src/mesa/main/bufferobj.c | 43 +++ 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 8f0dc8c..820cbcb 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -12

[Mesa-dev] [PATCH V3 02/10] mesa: Make validate_texbuffer_format function available externally

2013-12-14 Thread Pi Tabred
- change storage class from static to extern - rename validate_texbuffer_format to _mesa_validate_texbuffer_format --- src/mesa/main/teximage.c | 7 --- src/mesa/main/teximage.h | 4 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/

[Mesa-dev] [PATCH 0/2] code de-duplication and non-pci support

2013-12-14 Thread Rob Clark
From: Rob Clark It seems that over time, code related to finding driver name, dealing with pci-id table, etc, has been copy/pasted everywhere it was needed. Which is lame. And annoying if you have a device which is not pci. This patchset refactors it out into a simple loader util lib which is s

[Mesa-dev] [PATCH 2/2] loader: fallback to drmGetVersion() for non-pci devices

2013-12-14 Thread Rob Clark
From: Rob Clark Use the driver name from drmGetVersion() for non-pci devices. Signed-off-by: Rob Clark --- src/loader/loader.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index 3e69a59..0862b8b 100644 --- a/src