[Mesa-dev] [PATCH v3 3/9] mesa: Add QueryBuffer to context

2014-04-01 Thread Rafal Mielniczuk
v2: Add check for desktop gl and ARB_query_buffer_object extension when returning QueryBuffer in get_buffer_target Add QueryBuffer and initialise it to NullBufferObj on start --- src/mesa/main/bufferobj.c | 8 src/mesa/main/mtypes.h| 2 ++ 2 files changed, 10 insertions(+) diff

[Mesa-dev] [PATCH v3 5/9] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-04-01 Thread Rafal Mielniczuk
v2: Remove c++ comment style Just return and do nothing if query result is not yet available --- src/mesa/main/queryobj.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 86e7c3a..63b2c20 100644 --- a/src/mesa/main/que

[Mesa-dev] [PATCH v2 0/9] Add ARB_query_buffer_object (swrast)

2014-03-27 Thread Rafal Mielniczuk
extension by enabling software fallback in i965 driver. This is not included in this series. Thanks, Rafal Mielniczuk (9): glapi: Add xml infrastructure for ARB_query_buffer_object mesa: Add ARB_query_buffer_object extension flag mesa: Add QueryBuffer to context mesa: Handle

[Mesa-dev] [PATCH v2 6/9] mesa: Fix typos in function names in queryobj

2014-03-27 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/mesa/main/queryobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index d2d9fa7..ba9c7f5 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -702,7 +702,7

[Mesa-dev] [PATCH v2 9/9] doc: mark GL_ARB_query_buffer_object as done for swrast

2014-03-27 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index b7e4c87..aff0445 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -174,7 +174,7 @@ GL 4.4: GL_ARB_clear_texture

[Mesa-dev] [PATCH v2 8/9] mesa: Enable GL_ARB_query_buffer_object for software drivers

2014-03-27 Thread Rafal Mielniczuk
v2: Only enable extension for software driver Signed-off-by: Rafal Mielniczuk --- src/mesa/main/extensions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index a72284c..3dbca41 100644 --- a/src/mesa/main/extensions.c +++ b/src

[Mesa-dev] [PATCH v2 1/9] glapi: Add xml infrastructure for ARB_query_buffer_object

2014-03-27 Thread Rafal Mielniczuk
v2: Fix copy-paste error and comment style Signed-off-by: Rafal Mielniczuk --- src/mapi/glapi/gen/ARB_query_buffer_object.xml | 18 ++ src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 4 3 files changed, 23 insertions

[Mesa-dev] [PATCH v2 7/9] mesa: Implement software fallback for ARB_query_buffer_object

2014-03-27 Thread Rafal Mielniczuk
v2: In v1 &q->Ready was passed into query_store_result which could cause segfault in memcpy. (q->Ready is bool of size 1, while size parameter could be 4 or 8) Now store result in local variable and pass pointer to it instead. Signed-off-by: Rafal Mielniczuk --- src

[Mesa-dev] [PATCH v2 2/9] mesa: Add ARB_query_buffer_object extension flag

2014-03-27 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/mesa/main/mtypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 33cb888..3e3e6fd 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3516,6 +3516,7 @@ struct gl_extensions

[Mesa-dev] [PATCH v2 4/9] mesa: Handle QUERY_BUFFER_BINDING in GetIntegerv

2014-03-27 Thread Rafal Mielniczuk
v2: Expose query buffer binding location only when extension is enabled Signed-off-by: Rafal Mielniczuk --- src/mesa/main/get.c | 5 + src/mesa/main/get_hash_params.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index

[Mesa-dev] [PATCH v2 3/9] mesa: Add QueryBuffer to context

2014-03-27 Thread Rafal Mielniczuk
Add QueryBuffer and initialise it to NullBufferObj on start Signed-off-by: Rafal Mielniczuk --- src/mesa/main/bufferobj.c | 5 + src/mesa/main/mtypes.h| 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2e9e059..8d6e1ee

[Mesa-dev] [PATCH v2 5/9] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-03-27 Thread Rafal Mielniczuk
Just return and do nothing if query result is not yet available Signed-off-by: Rafal Mielniczuk --- src/mesa/main/queryobj.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 86e7c3a..d2d9fa7 100644 --- a/src/mesa

[Mesa-dev] [PATCH 0/8] Add ARB_query_buffer_object support

2014-03-19 Thread Rafal Mielniczuk
Hello, I have been playing around this extensions for a couple of days now, I got something working so I decided to send it for review :) I backed it up by piglit tests as well. Rafal Rafal Mielniczuk (8): glapi: Add xml infrastructure for ARB_query_buffer_object mesa: Add QueryBuffer to

[Mesa-dev] [PATCH 4/8] mesa: Handle QUERY_BUFFER_BINDING in GetIntegerv

2014-03-19 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/mesa/main/get.c | 4 src/mesa/main/get_hash_params.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index b190851..f2e6eba 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c

[Mesa-dev] [PATCH 3/8] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-03-19 Thread Rafal Mielniczuk
Just return and do nothing if query result is not yet available Signed-off-by: Rafal Mielniczuk --- src/mesa/main/queryobj.c | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 86e7c3a..66250b6 100644 --- a/src/mesa

[Mesa-dev] [PATCH 8/8] doc: mark GL_ARB_query_buffer_object as done

2014-03-19 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 9758dcc..c021eed 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -174,7 +174,7 @@ GL 4.4: GL_ARB_clear_texture

[Mesa-dev] [PATCH 6/8] mesa: Fix typos in function names in queryobj

2014-03-19 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/mesa/main/queryobj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 88e80c4..70a4bb8 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -752,7 +752,7

[Mesa-dev] [PATCH 7/8] mesa: Enable GL_ARG_query_buffer_object extension

2014-03-19 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- 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 a72284c..18710a6 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -123,6 +123,7 @@ static

[Mesa-dev] [PATCH 5/8] mesa: Store GetQueryObject{ui64}v results in QueryBuffer if bound

2014-03-19 Thread Rafal Mielniczuk
If QueryBuffer is bound, store query result in it at given offset, otherwise store query result in client memory pointer Signed-off-by: Rafal Mielniczuk --- src/mesa/main/queryobj.c | 88 ++-- 1 file changed, 71 insertions(+), 17 deletions(-) diff

[Mesa-dev] [PATCH 1/8] glapi: Add xml infrastructure for ARB_query_buffer_object

2014-03-19 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/mapi/glapi/gen/ARB_query_buffer_object.xml | 18 ++ src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 4 3 files changed, 23 insertions(+) create mode 100644 src/mapi/glapi/gen

[Mesa-dev] [PATCH 2/8] mesa: Add QueryBuffer to context

2014-03-19 Thread Rafal Mielniczuk
Add QueryBuffer and initialise it to NullBufferObj on start Signed-off-by: Rafal Mielniczuk --- src/mesa/main/bufferobj.c | 5 + src/mesa/main/mtypes.h| 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2e9e059..8d6e1ee

[Mesa-dev] [PATCH v2 1/5] mesa: Add GL_NV_non_square_matrices for OpenGL ES 2.x.

2014-02-26 Thread Rafal Mielniczuk
v2: Add NV_non_square_matrices to API_XML in Makefile.am Fixup convoluted path in NV_non_square_matrices.xml Fix extension number in es_EXT.xml comment es2api ABI-check was also updated to prevent make check failures in searching for NV suffixed function names. Signed-off-by: Rafal

[Mesa-dev] [PATCH 2/5] glsl: Define GL_NV_non_square_matrices in an OpenGL ES shader

2014-02-26 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/glsl/glcpp/glcpp-parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index bdc598f..da89046 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y

[Mesa-dev] [PATCH 1/5] mesa: Add GL_NV_non_square_matrices for OpenGL ES 2.x.

2014-02-26 Thread Rafal Mielniczuk
es2api ABI-check was also updated to prevent make check failures in searching for NV suffixed function names. Signed-off-by: Rafal Mielniczuk --- src/mapi/es2api/ABI-check | 6 +++ src/mapi/glapi/gen/NV_non_square_matrices.xml | 59 +++ src/mapi

[Mesa-dev] [PATCH 0/5] Enable GL_NV_non_square_matrices extension

2014-02-26 Thread Rafal Mielniczuk
Hello, This series enable GL_NV_non_square_matrices from newbie projects wiki. Piglit tests have already been sent to piglit dev list. Rafal Rafal Mielniczuk (5): mesa: Add GL_NV_non_square_matrices for OpenGL ES 2.x. glsl: Define GL_NV_non_square_matrices in an OpenGL ES shader glsl: Add

[Mesa-dev] [PATCH 3/5] glsl: Add supported extensions entry for for GL_NV_non_square_matrices

2014-02-26 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 416acb9..5840311 100644 --- a/src/glsl/glsl_parser_extras.cpp

[Mesa-dev] [PATCH 5/5] mesa: Enable NV_non_square_matrices in ES2 context

2014-02-26 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- 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 bc63b26..c2c8a52 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -339,6 +339,7 @@ static

[Mesa-dev] [PATCH 4/5] glsl: Enable NV_non_square_matrices types

2014-02-26 Thread Rafal Mielniczuk
Signed-off-by: Rafal Mielniczuk --- src/glsl/builtin_types.cpp | 9 + 1 file changed, 9 insertions(+) diff --git a/src/glsl/builtin_types.cpp b/src/glsl/builtin_types.cpp index dd42ecb..bb260b8 100644 --- a/src/glsl/builtin_types.cpp +++ b/src/glsl/builtin_types.cpp @@ -360,5 +360,14