Re: [Mesa-dev] [PATCH] llvmpipe: use pipe_sampler_view_release() to avoid segfault

2013-12-22 Thread Jonathan Liu
On 17/12/2013 1:59 AM, Brian Paul wrote: On 12/15/2013 06:24 PM, Jonathan Liu wrote: This fixes another case of faulting when freeing a pipe_sampler_view that belongs to a previously destroyed context. Signed-off-by: Jonathan Liu --- src/gallium/drivers/llvmpipe/lp_state_sampler.c | 6

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

2013-12-22 Thread Jonathan Liu
On 15/12/2013 4:14 AM, Brian Paul wrote: 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 funct

[Mesa-dev] [PATCH] llvmpipe: use pipe_sampler_view_release() to avoid segfault

2013-12-15 Thread Jonathan Liu
This fixes another case of faulting when freeing a pipe_sampler_view that belongs to a previously destroyed context. Signed-off-by: Jonathan Liu --- src/gallium/drivers/llvmpipe/lp_state_sampler.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/drivers/llvmpipe

[Mesa-dev] [PATCH] mesa: update khrplatform.h for Win64 support

2013-12-15 Thread Jonathan Liu
Signed-off-by: Jonathan Liu --- include/KHR/khrplatform.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/KHR/khrplatform.h b/include/KHR/khrplatform.h index 4479539..46730cd 100644 --- a/include/KHR/khrplatform.h +++ b/include/KHR/khrplatform.h

[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

Re: [Mesa-dev] OSMesa Help

2013-07-15 Thread Jonathan Liu
On 10/07/2013 3:20 PM, Andy Li wrote: Hello everyone, I have some questions regarding to OSMesa. I am currently working on a project which I have to use Mesa on an embedded system. My current goal is to port the base functions over to the embedded system, so that I can draw a line on a pr

Re: [Mesa-dev] [PATCH] builtin_compiler/build: Avoid using libtool if cross compiling

2013-07-02 Thread Jonathan Liu
Bump. On 4 June 2013 23:03, Jonathan Liu wrote: > Adds the dependencies of builtin_compiler as sources when cross > compiling instead of using libtool to share compilation with src/glsl. > The builtin_compiler executable is built for the host when cross > compiling so it doesn

Re: [Mesa-dev] [PATCH] configure: Avoid use of AC_CHECK_FILE for cross compiling

2013-07-02 Thread Jonathan Liu
Bump. On 4 June 2013 23:04, Jonathan Liu wrote: > The AC_CHECK_FILE macro can't be used for cross compiling as it will > result in "error: cannot check for file existence when cross compiling". > Replace it with the AS_IF macro. > > Signed-off-by: Jonathan L

[Mesa-dev] [PATCH] configure: Avoid use of AC_CHECK_FILE for cross compiling

2013-06-04 Thread Jonathan Liu
The AC_CHECK_FILE macro can't be used for cross compiling as it will result in "error: cannot check for file existence when cross compiling". Replace it with the AS_IF macro. Signed-off-by: Jonathan Liu --- configure.ac | 12 ++-- 1 file changed, 6 insertions(+), 6 del

[Mesa-dev] [PATCH] builtin_compiler/build: Avoid using libtool if cross compiling

2013-06-04 Thread Jonathan Liu
this case. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44618 Signed-off-by: Jonathan Liu --- src/glsl/builtin_compiler/Makefile.am | 13 + 1 file changed, 13 insertions(+) diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am index e1