Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 210 +
tests/util/piglit-util-gl.c| 166 -
tests/util/piglit-util-gles.c | 44
3 files changed, 210 insertions(+), 210 deletions(-)
diff
With the image generation factored out to piglit_rgbw_image and
piglit_rgbw_image_ubyte, the remainder of the implementation becomes
common between GL and GLES.
This eliminates the last helper function from piglit-util-gles.c, so
drop it.
Signed-off-by: Josh Triplett
---
tests/util
These don't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 183 +
tests/util/piglit-util-gl.c| 183 -
2 files changed, 183 insertions(+)
These don't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 40 ++
tests/util/piglit-util-gl.c| 40 --
2 files changed, 40 insertions(+
Piglit looked for a GL_VERSION starting with "OpenGL ES ", which did not
match "OpenGL ES-CM 1.1 Mesa 10.2.1". Stop requiring the trailing
space.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
dif
These don't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 81 +
tests/util/piglit-util-gl.c| 82 --
2 files changed, 81 insertions(+
These don't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 116 +
tests/util/piglit-util-gl.c| 115
2 files changed, 116 insertions(+)
Introduce a new internal helper, piglit_read_pixels_float, that always
returns floats. On GL it just calls glReadPixels with GL_FLOAT; on GLES
it uses GL_UNSIGNED_BYTE and converts.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 280
This doesn't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 39 +
tests/util/piglit-util-gl.c| 40 --
2 files changed, 39 insertions(+
piglit_gen_ortho_projection and piglit_ortho_projection already had a
similar implementation for GL and GLES1; common it up and remove the
ifdefs.
Move piglit_frustum_projection out of GL-only code as well, and add
support for GLES1 using glFrustumf.
Signed-off-by: Josh Triplett
---
tests/util
Drop the now-empty piglit-util-gl.c.
Signed-off-by: Josh Triplett
---
tests/util/CMakeLists.gl.txt | 2 -
tests/util/piglit-util-gl-common.c | 241
tests/util/piglit-util-gl.c| 277 -
3 files changed, 241
GL_CLAMP_TO_BORDER as it does on GL.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 110 +
tests/util/piglit-util-gl.c| 83
tests/util/piglit-util-gles.c | 87 -
3 files
The unified implementation handles all the GLenum values expected by
either.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 26 ++
tests/util/piglit-util-gl.c| 26 --
tests/util/piglit-util-gles.c | 21
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 14 ++
tests/util/piglit-util-gl.c| 13 -
tests/util/piglit-util-gles.c | 12
3 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/tests/util/piglit-util-gl
This moves the GLES implementation of piglit_rgbw_texture much closer to
the GL version.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gles.c | 82 ---
1 file changed, 45 insertions(+), 37 deletions(-)
diff --git a/tests/util/piglit-util-gles.c
ies I sent yesterday.
Josh Triplett (16):
Fix piglit_is_gles to return true for "OpenGL ES-CM 1.1 ..."
Unify piglit_num_components between GL and GLES
Move piglit_get_luminance_intensity_bits to GL common code
Unify projection utility functions across GL and GLES
Unify piglit_pr
This doesn't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 102 +
tests/util/piglit-util-gl.c| 102 -
2 files changed, 102 inser
This doesn't need to remain in the GL-specific utility library.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 102 +
tests/util/piglit-util-gl.c| 102 -
2 files changed, 102 inser
piglit_gen_ortho_projection and piglit_ortho_projection already had a
similar implementation for GL and GLES1; common it up and remove the
ifdefs.
Move piglit_frustum_projection out of GL-only code as well, and add
support for GLES1 using glFrustumf.
Signed-off-by: Josh Triplett
---
tests/util
Piglit looked for a GL_VERSION starting with "OpenGL ES ", which did not
match "OpenGL ES-CM 1.1 Mesa 10.2.1". Stop requiring the trailing
space.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
dif
The unified implementation handles all the GLenum values expected by
either.
Signed-off-by: Josh Triplett
---
tests/util/piglit-util-gl-common.c | 26 ++
tests/util/piglit-util-gl.c| 26 --
tests/util/piglit-util-gles.c | 21
21 matches
Mail list logo