Age | Commit message (Collapse) | Author | Files | Lines |
|
This works together with the new subtest infrastructure in
intel-gpu-tools.
v2: An empty string crept into the subtest list, resulting in a
testcase failure. Filter it out.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|
|
Otherwise python2 blows up when the program output contains a non-ascii
character. The resulting exception caused a bunch of spurious fails in
the igt testscases.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|
|
Piglit as a testrunner is _so_ much better than automake's make check.
Based upon a quick patch from Kenneth Graunke.
v2: Add copyright header.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|
|
The intel-gpu-tools testrunner needs this to figure out the
testresult (since 'skip' is indicated by a returncode of 77
in i-g-t).
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|
|
|
|
This patch defines EGL_OPENGL_ES3_BIT_KHR, for the case when eglext.h is
too old.
Reported-by: Ken Phillis Jr <kphillisjr@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
|
|
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
switch
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
I haven't observed any failures with this yet. Since we just did the
same thing with shader_runner, it seems like a good idea.
v2: Fix two off-by-10x errors pointed out by Chad.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
The time-elapsed test needs to consume a lot of GPU time so that it
can validate GPU time queries against elapsed wall-clock time.
Previously we did this by painting the window thousands of times.
That sometimes caused false failures due to the CPU time consumed in
preparing the draw calls.
This patch changes the test so that it consumes time by using a slow
fragment shader rather than by painting the window over and over.
|
|
This reverts commit cf47699087f74a6fd94c59a74837fc6c3c6422a8.
While I still believe the test is wrong, apparently this change made it
worse; the test doesn't quite work like I thought. More investigation
is needed. In the meantime, restore the old behavior.
|
|
OpenBSD is one platform that does not define the symbol RLIMIT_AS.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
|
|
Table 3.23 (on page 221) of the OpenGL 3.0 specification is:
+----------------------------------------+
| Texture Base | Texture source color |
| Internal Format | C_s A_s |
+-----------------+----------------------+
| ALPHA | (0, 0, 0) | A |
| LUMINANCE | (L, L, L) | 1 |
| LUMINANCE_ALPHA | (L, L, L) | A |
| INTENSITY | (I, I, I) | I |
| RED | (R, 0, 0) | 1 |
| RG | (R, G, 0) | 1 |
| RGB | (R, G, B) | 1 |
| RGBA | (R, G, B) | A |
+-----------------+----------------------+
From this, we see when sampling from RED, RG, and RGB textures, alpha
is supposed to be one.
v2: Change commit message to quote the right part of the spec.
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
Attempt to create contexts with bogus versions.
Tests Mesa commit 243cf7a924eaef78ce0d5150747fae6c3c4e6974. Before that
commit, the Intel driver failed to validate requested OpenGL ES context
versions.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
If eglChooseConfig fails with EGL_BAD_ATTRIBUTE, then fail the test.
Piglit only requests valid attributes, therefore the error is incorrect.
Regresses test egl-create-context-verify-gl-flavor:gles3.0 on
mesa-5cf853669. Mesa fails to recoginize EGL_OPENGL_ES3_BIT_KHR despite
exposing the EGL_KHR_create_context extension.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
- Request a config with the es3 bit, EGL_OPENGL_ES3_BIT_KHR.
- Try to create a GLES 3.0 context with the config.
- Verify that the context version is >= 3.0.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Currently, in Mesa with the i965 driver, calling glFlush() forces all
pending drawing operations to be sent to the kernel; this ensures that
any subsequent drawing operations will be performed after those
pending drawing operations, even if they come from other contexts.
The glx-multithread test was relying on this behaviour, however, the
GL and GLX specs do not garantee this.
This patch modifies the glx-multithread test to use glFinish() instead
of glFlush().
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
To use multithreading with xlib, you're supposed to call XInitThreads
before any other xlib call. Without this, xlib and GLX calls won't be
thread safe.
(Based on a patch by Ian Romanick <ian.d.romanick@intel.com>)
|
|
It doesn't actually test anything, and thus can never fail.
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
the context
A test script can require a specific GLSL version or a specific GL
version. To satisfy this requirement, the piglit framework code needs
to know about the requirement before creating the context. However,
the requirements section can contain other requirements, such as
minimum number of uniforms.
The requirements section can't be fully processed until after the
context is created, but the context can't be created until after the
requirements section is processed. Do a quick can over the
requirements section to find the GL and GLSL version requirements.
Use these to guide context creation.
v2: Use 3-digit GLSL versions as suggested by Eric.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
There's no default VAO (without GL_ARB_compatibility), so we have to
create and bind one.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
In floating point, 3.1 is actually 3.0999999999, and that's just
awsome for comparing GL versions.
v2: Use 3-digit GLSL versions as suggested by Eric.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56057
|
|
Tested on Mac OS 10.7
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
|
|
1) Fix creation of libpiglitutil_cl.dylib
2) Fix includes of OpenCL.h to finish fixing MacOS build
Previous error message when linking dylib was:
Linking C shared library ../../../../lib/libpiglitutil_cl.dylib
Undefined symbols for architecture x86_64:
"_piglit_cl_get_test_config", referenced from:
_piglit_cl_framework_run in piglit-framework-cl.c.o
ld: symbol(s) not found for architecture x86_64
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
|
|
The original version defined BUILD_OPT, but used BUILD_OPT1. Clover
wasn't capable of passing the test either way. Now, the test should
pass on conforming implementations.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
|
|
So the test isn't skipped (with "warn" result) on Windows.
|
|
Triangles should be clipped to the clip volume and therefore shouldn't
end up being rasterized outside the viewport.
This was failing on Sandy Bridge with guard band clipping enabled.
v2: new test name, more comments and addition to all.tests.
v3: Eric's comments incorporated, and the explicit window size removed.
v4: minor style tweaks by Eric, and Brian's probe-related review.
Reviewed-by: Eric Anholt <eric@anholt.net>
|
|
v2: Drop the window size setup.
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Given that piglit hasn't been testing this, I don't want to modify the
existing glsl-max-varyings which has been very useful. I don't want a
non-rendering test, though, because gl 2.0 allows an implementation to
allow shaders with >MAX_VARYING_COMPONENTS, so we should actually test
the rendering if that does happen.
v2: Make the error/warning message clearer.
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
It's a really slow one, and I'm adding another variant of it.
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Ninja is a wicked-fast build system backend supported by CMake.
|
|
If piglit_gl_test_config::supports_gl_compat_version was >= 32, then
Piglit neglected to set the WAFFLE_CONTEXT_PROFILE attribute.
Luckily this introduced no errors, because Piglit does not yet contain any
3.2 tests.
Piglit also neglected to set the profile attribute when
piglit_gl_test_config::supports_gl_core_version was >= 32, but this was
safe because the default value of WAFFLE_CONTEXT_PROFILE is
WAFFLE_CONTEXT_CORE_PROFILE for GL versions >= 3.2. However, explicitly
set it anyway for self-documentation.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
This lets the textureSize tests for TBOs run on i965.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Thanks to waffle we can finally do this.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
This reverts commit ba79f8c3f85a479e97d43f41bf6d2064a1e174fe.
This test has been replaced with gl-3.0/genned-names,
and the pre-GL-3.0 behavior is relatively unspecified and
uninteresting.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
The test claimed that the default value was 0,0,0,1, but the GL 3.0
spec page 263 disagrees. The test saw 0,0,0,1 when it was written
because a visual with no alpha happened to be chosen, but there's no
guarantee that you don't have alpha, so fix the test, and ask for
alpha in the test so that we can reliably check those bits.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
|
|
|
|
This test requests various flavors (that is, api and version and profile) of
contexts and verifies that the context's actual flavor is compatible with
the requested flavor.
The following subcases fail on mesa-a196f43 with Intel Sandybridge:
- For each OpenGL context >= 3.2, context creation fails with EGL
error EGL_SUCCESS.
- For OpenGL ES 3.0, the context version reported by glGetString is
2.0.
All other cases skip or pass.
v2:
- Document that we use eglGetProcAddress to avoid piglit-dispatch.
- Also verify that glGetString(GL_VERSION) and
glGetIntgerv(GL_MAJOR/MINOR_VERSION) return the same version.
v3:
- Remove incorrect test for ES3.
Reviewed-by: Iam Romanick <idr@freedesktop.org> (v2)
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Previously, piglit_expect_egl_error() would terminate the test if an
unexpected error occurred. However, there are many cases when we would
prefer to simply report the error and continue testing.
Commit 83c8ef80 made an analagous change to piglit_check_gl_error(). For
consistency with that function, this commit also renames
piglit_expect_egl_error to piglit_check_egl_error.
In all cases, I replaced
piglit_expect_egl_error(err, PIGLIT_FAIL)
with
if (!piglit_check_egl_error(err))
piglit_report_result(PIGLIT_FAIL)
or some equivalent.
Reviewed-by: Ian Romanick <idr@freedesktop.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|
|
No test actually called glewInit(), because piglit-dispatch #define'd it
to piglit_dispatch_default_init().
This patch removes the macro and replaces each call to glewInit() with
piglit_dispatch_default_init().
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
|