Re: [Piglit] [PATCH 1/2] fbo-drawbuffers2-blend: fix incorrect comments

2018-03-16 Thread Eric Anholt
Brian Paul  writes:

> ---
>  tests/fbo/fbo-drawbuffers2-blend.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

These 2 are:

Reviewed-by: Eric Anholt 


signature.asc
Description: PGP signature
___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


[Piglit] [PATCH 1/2] fbo-drawbuffers2-blend: fix incorrect comments

2018-03-16 Thread Brian Paul
---
 tests/fbo/fbo-drawbuffers2-blend.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/fbo/fbo-drawbuffers2-blend.c 
b/tests/fbo/fbo-drawbuffers2-blend.c
index b97803b..2c16b8f 100644
--- a/tests/fbo/fbo-drawbuffers2-blend.c
+++ b/tests/fbo/fbo-drawbuffers2-blend.c
@@ -25,10 +25,9 @@
  *
  */
 
-/** @file fbo-drawbuffers2-colormask.c
+/** @file fbo-drawbuffers2-blend.c
  *
- * Tests that individual color masks per render target with
- * EXT_draw_buffers2 works.
+ * Tests per-buffer blend enable flags.
  */
 
 #include "piglit-util-gl.h"
-- 
2.7.4

___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


[Piglit] [PATCH 2/2] piglit: fix some warnings about no return value from non-void function

2018-03-16 Thread Brian Paul
---
 tests/spec/arb_texture_multisample/large-float-texture.c | 1 +
 tests/spec/arb_vertex_program/property-bindings.c| 4 +++-
 tests/spec/glsl-1.10/execution/built-in-uniform-state.c  | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_texture_multisample/large-float-texture.c 
b/tests/spec/arb_texture_multisample/large-float-texture.c
index 2e05a6e..bbec551 100644
--- a/tests/spec/arb_texture_multisample/large-float-texture.c
+++ b/tests/spec/arb_texture_multisample/large-float-texture.c
@@ -456,6 +456,7 @@ texel_size(GLenum intFormat)
return 4 * sizeof(GLfloat);
default:
assert(!"Unexpected texture format");
+   return 0;
}
 }
 
diff --git a/tests/spec/arb_vertex_program/property-bindings.c 
b/tests/spec/arb_vertex_program/property-bindings.c
index f1a2b28..381ecab 100644
--- a/tests/spec/arb_vertex_program/property-bindings.c
+++ b/tests/spec/arb_vertex_program/property-bindings.c
@@ -158,8 +158,10 @@ enum2program(const GLenum pname)
return "r";
case GL_Q:
return "q";
+   default:
+   assert(!"unexpected state enum");
+   return "";
}
-   assert(!"unexpected state enum");
 }
 
 enum piglit_result
diff --git a/tests/spec/glsl-1.10/execution/built-in-uniform-state.c 
b/tests/spec/glsl-1.10/execution/built-in-uniform-state.c
index ca7a3cf..5ab5ee8 100644
--- a/tests/spec/glsl-1.10/execution/built-in-uniform-state.c
+++ b/tests/spec/glsl-1.10/execution/built-in-uniform-state.c
@@ -191,8 +191,10 @@ enum2glsl(const GLenum pname)
return "R";
case GL_Q:
return "Q";
+   default:
+   assert(!"unexpected pname");
+   return "";
}
-   assert(0);
 }
 
 enum piglit_result
-- 
2.7.4

___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


Re: [Piglit] [PATCH] tests: add INTEL_blackhole_render

2018-03-16 Thread Alejandro Piñeiro
On 16/03/18 12:53, Lionel Landwerlin wrote:
> On 16/03/18 07:31, Alejandro Piñeiro wrote:
>> Is adding ${OPENGL_gl_LIBRARY} at link_libraries really needed at this
>> gles CMakeKist? As far as I have seen, most gles2/3 CMakeLists just adds
>> piglitutil_${piglit_target_api}.
>>
> Looks like I can drop it from the GL tests too and it still links...
> Does that make sense? :)

Funny thing. FWIW, I always C those sections (if it is working ...),
never thought too much why most of the tests had a different
link_libraries for gl compared to gles.

In any case, it is just a nitpick. If it is working as it is, just go
ahead with my Rb.

BR



___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


Re: [Piglit] [PATCH] tests: add INTEL_blackhole_render

2018-03-16 Thread Lionel Landwerlin

On 16/03/18 07:31, Alejandro Piñeiro wrote:

Is adding ${OPENGL_gl_LIBRARY} at link_libraries really needed at this
gles CMakeKist? As far as I have seen, most gles2/3 CMakeLists just adds
piglitutil_${piglit_target_api}.

Looks like I can drop it from the GL tests too and it still links... 
Does that make sense? :)


___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


Re: [Piglit] [PATCH] tests: add INTEL_blackhole_render

2018-03-16 Thread Alejandro Piñeiro
Looks good to me, just a minor comment below.


On 15/03/18 15:15, Lionel Landwerlin wrote:
> Signed-off-by: Lionel Landwerlin 
> ---
>  registry/gl.xml|   8 +-
>  tests/all.py   |   9 ++
>  tests/spec/CMakeLists.txt  |   1 +
>  .../spec/intel_blackhole_render/CMakeLists.gl.txt  |  14 ++
>  .../intel_blackhole_render/CMakeLists.gles2.txt|  13 ++
>  .../intel_blackhole_render/CMakeLists.gles3.txt|  13 ++
>  tests/spec/intel_blackhole_render/CMakeLists.txt   |   1 +
>  .../intel_blackhole_render/blackhole_dispatch.c| 127 +
>  tests/spec/intel_blackhole_render/blackhole_draw.c | 156 
> +
>  tests/spec/nv_image_formats/CMakeLists.gl.txt  |   8 ++
>  10 files changed, 349 insertions(+), 1 deletion(-)
>  create mode 100644 tests/spec/intel_blackhole_render/CMakeLists.gl.txt
>  create mode 100644 tests/spec/intel_blackhole_render/CMakeLists.gles2.txt
>  create mode 100644 tests/spec/intel_blackhole_render/CMakeLists.gles3.txt
>  create mode 100644 tests/spec/intel_blackhole_render/CMakeLists.txt
>  create mode 100644 tests/spec/intel_blackhole_render/blackhole_dispatch.c
>  create mode 100644 tests/spec/intel_blackhole_render/blackhole_draw.c
>  create mode 100644 tests/spec/nv_image_formats/CMakeLists.gl.txt
>
> diff --git a/registry/gl.xml b/registry/gl.xml
> index 7b13ff907..3c371905d 100644
> --- a/registry/gl.xml
> +++ b/registry/gl.xml
> @@ -4518,7 +4518,8 @@ typedef unsigned int GLhandleARB;
>  
>  
>  
> -
> +
> +
>  
>  
>  
> @@ -44054,6 +44055,11 @@ typedef unsigned int GLhandleARB;
>  
>  
>  
> + supported="gl|glcore|gles2">
> +
> +
> +
> +
>  
>  
>  
> diff --git a/tests/all.py b/tests/all.py
> index 8c5877a63..c30a5dfdb 100644
> --- a/tests/all.py
> +++ b/tests/all.py
> @@ -4971,6 +4971,15 @@ with profile.test_list.group_manager(
>  g(['intel_conservative_rasterization-innercoverage_gles3'])
>  g(['intel_conservative_rasterization-tri_gles3'])
>  
> +# Group INTEL_blackhole_render
> +with profile.test_list.group_manager(
> +PiglitGLTest,
> +grouptools.join('spec', 'INTEL_blackhole_render')) as g:
> +g(['intel_conservative_rasterization-draw'])
> +g(['intel_conservative_rasterization-dispatch'])
> +g(['intel_conservative_rasterization-draw_gles2'])
> +g(['intel_conservative_rasterization-draw_gles3'])
> +
>  # Group ARB_bindless_texture
>  with profile.test_list.group_manager(
>   PiglitGLTest,
> diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt
> index e57e8d703..dc14beb4e 100644
> --- a/tests/spec/CMakeLists.txt
> +++ b/tests/spec/CMakeLists.txt
> @@ -177,3 +177,4 @@ add_subdirectory (arb_post_depth_coverage)
>  add_subdirectory (arb_fragment_shader_interlock)
>  add_subdirectory (ext_occlusion_query_boolean)
>  add_subdirectory (ext_disjoint_timer_query)
> +add_subdirectory (intel_blackhole_render)
> diff --git a/tests/spec/intel_blackhole_render/CMakeLists.gl.txt 
> b/tests/spec/intel_blackhole_render/CMakeLists.gl.txt
> new file mode 100644
> index 0..379fc5f9a
> --- /dev/null
> +++ b/tests/spec/intel_blackhole_render/CMakeLists.gl.txt
> @@ -0,0 +1,14 @@
> +include_directories(
> + ${GLEXT_INCLUDE_DIR}
> + ${OPENGL_INCLUDE_PATH}
> +)
> +
> +link_libraries (
> + piglitutil_${piglit_target_api}
> + ${OPENGL_gl_LIBRARY}
> +)
> +
> +piglit_add_executable (intel_blackhole-dispatch blackhole_dispatch.c)
> +piglit_add_executable (intel_blackhole-draw blackhole_draw.c)
> +
> +# vim: ft=cmake:
> diff --git a/tests/spec/intel_blackhole_render/CMakeLists.gles2.txt 
> b/tests/spec/intel_blackhole_render/CMakeLists.gles2.txt
> new file mode 100644
> index 0..076c559d5
> --- /dev/null
> +++ b/tests/spec/intel_blackhole_render/CMakeLists.gles2.txt
> @@ -0,0 +1,13 @@
> +include_directories(
> + ${GLEXT_INCLUDE_DIR}
> + ${OPENGL_INCLUDE_PATH}
> +)
> +
> +link_libraries (
> + piglitutil_${piglit_target_api}
> + ${OPENGL_gl_LIBRARY}
> +)

Is adding ${OPENGL_gl_LIBRARY} at link_libraries really needed at this
gles CMakeKist? As far as I have seen, most gles2/3 CMakeLists just adds
piglitutil_${piglit_target_api}.

> +
> +piglit_add_executable (intel_blackhole-draw_gles2 blackhole_draw.c)
> +
> +# vim: ft=cmake:
> diff --git a/tests/spec/intel_blackhole_render/CMakeLists.gles3.txt 
> b/tests/spec/intel_blackhole_render/CMakeLists.gles3.txt
> new file mode 100644
> index 0..f0b912d99
> --- /dev/null
> +++ b/tests/spec/intel_blackhole_render/CMakeLists.gles3.txt
> @@ -0,0 +1,13 @@
> +include_directories(
> + ${GLEXT_INCLUDE_DIR}
> + ${OPENGL_INCLUDE_PATH}
> +)
> +
> +link_libraries (
> +