Age | Commit message (Collapse) | Author | Files | Lines |
|
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
account for fp32 rounding.
sinpi(n) should return 0 for any integer n
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
using libm cosf(3.0f * M_PI / 2.0f) == 0x1.99bc5cp-27
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Basic tests. All new tests, but sincos pass on beignet(SKL) (sin/cos
tests fail on beignet)
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
|
|
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
|
|
Add type3 vectors and bump required CLC to 1.1.
Simplify test to use only 1-2 vstore calls.
Zero the output buffer (fixes undefined values in results of some vstore
tests).
v2: Add canary after the written values
v3: Fixup canary
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
python:
>>> math.erfc(1.960/math.sqrt(2.0)).hex()
'0x1.9990c58859300p-5'
float rtne rounds up to 0x1.9990c6p-5
>>> math.erfc(2.576/math.sqrt(2.0)).hex()
'0x1.4784addb5643fp-7'
float rtne rounds up to 0x1.4784aep-7
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
|
|
In python:
>>> math.erf(11.1)
1.0
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
|
|
Tested with libclc on a Radeon HD 7850.
Hex output values were generated via remainderf(float, float).
No implications as to the quality of the inputs is intended.
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
cos(pi * 2k) = 1
Fixes cos test on beignet
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
|
|
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
v2: fixup python style(six.iteritems, itertools.product, enumerate, ...)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
v2: "The size of each element in the mask must match the size of each element in the result."
v3: fixup python style (six. iteritems, enumerate, itertools.product, ...)
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
v2: simplify
mark local storage volatile
v3: python style
Passes on beignet(IVB), clover(carrizo, iceland), and intel CPU
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
v2: mark temporary storage as volatile
v3: python style
vstore_half requires workaround using short as local/private type
Tests pass on beignet(IVB), and intel CPU
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
|
|
Seriously, 100000000000 is not the only 64-bit integer. We should test
a few more of them.
These new integers trigger a bug in the GLSL IR int64 lowering code.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
|
|
The extension requires a GL_ prefix, which the template didn't have.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Tested-by: Jason Ekstrand <jason@jlekstrand.net>
|
|
This typo causes some tests to be skipped that shouldn't.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
|
|
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
|
|
This adds 264 execution tests (all in the same directory, so will run quite
quickly with --process-isolation false) and 192 compiler tests.
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
This will be needed for the interaction of GL_ARB_gpu_shader_fp64 with
GL_ARB_gpu_shader_int64.
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Use generic names to reflect the upcoming dual use for 64-bit int types.
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Currently only 'd' for double, but will be extended for 64-bit integer
types.
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
We will extend it with int64 types.
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
|
|
This tests that the compiler accepts the new layout formats introduced by
NV_image_formats and also it's correct interaction with the
EXT_texture_norm16 specification.
v2: Only disallow normalized formats when EXT_texture_norm16 is not
available (Ilia)
v3: Shuffle the declaration as suggested to cover permutations of
NV_image_formats & EXT_texture_norm16 properly (Ilia)
Reorder imports (Dylan)
Add docstring description of the test (Dylan)
Other nits (Dylan)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
This extensions is written against OpenGL ES 3.1 and 3.10 of the OpenGL ES
Shading Language specification.
v2: Fix missing 'GL_' prefix (Ilia)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
|
|
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
The tests try to use target mem type aligned access.
Generated tests pass (except vstore-half which skips) on intel(cpu), beignet, nvidia CUDA
v2: Move code to main function, update copyright
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Acked-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Executing code in the global scope that isn't in main isn't a
particularly good idea, but for our testing we call the main() function,
so moving this into main fixes the test, and it also improves the code
quality a bit.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
Currently there are a good number of files that aren't closed because
the call to the close function is in the wrong loop level. While moving
it in one level would solve the problem, using a context manager is
better style and ensures that the file is closed.
This error was spotted by py.test.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
This generator produces preprocessor defines tests, which are duplicated
by the gen_extensions_defined generator. It makes sense to me to let the
defines generator own this functionality (it's very minor anyway).
This also changes the version required in extensions defined to 130, per
the spec "OpenGL 3.0 and GLSL 1.30 are required."
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
This is a) good practice, b) fixes potential issues on windows, and c)
makes testing easier.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
|
|
This starts to fail with my upcoming patch to only expose extensions
based on shader version.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Before, in every drawing we were having the same VBO values per vertex
to be compared against the values in the uniforms. Now, we also have
different values per vertex so we can be sure that it is truly its own
data.
Signed-off-by: Andres Gomez <agomez@igalia.com>
Acked-by: Juan A. Suarez <jasuarez@igalia.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
|
|
This fixes int64 failures.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
The dtype setting only works with numpy 1.9 and above, which doesn't
seem to be in most distros yet.
Reported-by: Jose Fonseca <jfonseca@vmware.com>
Tested-by: Jose Fonseca <jfonseca@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
Rather than forking this code further, I've just added support to the
standard generator for the 64-bit tests.
This relies on the shader_runner int64 support.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
Added more test cases combinations by including u/byte and u/short GL
types in the VBO so the stride is smaller than a word.
Signed-off-by: Andres Gomez <agomez@igalia.com>
Acked-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
Signed-off-by: Andres Gomez <agomez@igalia.com>
Acked-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
|
|
This allows to set data of u/byte, u/short and half types for
attributes with the shader runner.
For example:
0/byte/int attname1/ushort/uint attname3/half/float
The syntax has been extended so the recommended way has replaced the
old COUNT field in the [vertex data] header line with the
corresponding GLSL type for the old TYPE field.
In any case, the extended syntax is backward compatible so it is still
possible to specify a vec3 attribute like:
attname/float/3
In addition to the now recommended format:
attname/float/vec3
Due to this, the arb_vertex_attrib_64bit input tests generator has
been also adapted to the new syntax.
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
|