arb_sac, arb_sso: Fix spelling of tessellation

The extension checks wouldn't have worked here; but may as well fix the
cases in output too.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
arb_gpu_shader5: add a very basic gl_SampleMaskIn test

Just ensures that without any MS set up, the coverage mask is 1.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_vertex_array_bgra: Add tests for glGet*(GL_*_ARRAY_SIZE) == GL_BGRA.

Mesa didn't get this quite right, causing problems to ApiTrace --
https://github.com/apitrace/apitrace/issues/261 .

Reviewed-by: Brian Paul <brianp@vmware.com>
gen_builtin_functions: add test for assignment operators

Adds shader_tests for +=, -=, *=, /=, %=, <<=, >>=, &=, ^=, and |=

This generates 816 new tests by extending gen_builtin_unform_tests.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
shader_runner: Don't try to enable GL_TEXTURE_2D in core profiles

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
shader_runner: Create separate render width/height variables

This will allow us to bind a texture to a framebuffer for rendering
and probing.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
shader_runner: Allow binding a texture to FB attachment0

This will allow probing from the texture for operations that want
to target a texture rather than the draw framebuffer. (For example,
imageStore)

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
shader_runner: Add image texture command for BindImageTexture

We only use one parameter which means the texture unit index must
match the image unit index.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
shader_runner: Add compute command to access DispatchCompute

This will run glDispatchCompute allowing a compute shader to run.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_compute_shader: Test basic uniform access in a compute shader

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_compute_shader: Test reading and merging multiple source images

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_compute_shader: Test a simple compute shader with multiple workgroups

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_compute_shader: Test simple usage of barrier function

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
built-in-constants: Support compute shaders

Compute shaders must be linked separately to process minimums
and maximums.

In the line following the version, we now look for a shader
type string. (One of vertex, geometry, fragment or compute.)

If specified, then that shader type will be tested separately.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
arb_compute_shader: Test remaining compute GLSL minimums & maximums

Also, convert two glslparsertest tests to use built-in-constants.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
summary: include disabled tests in the changes too

Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
builtin-gl-sample-mask-simple: another test for gl_SampleMask[0] FS output

This one is simpler and easier to debug. It passes on my hardware, while
the other one fails (due to a shader bug probably).

I don't like tests that return the pass or fail status from the shader,
because they are impossible to debug. Therefore, this one doesn't do it.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
builtin tests: Add negation source modifer test for logical instructions

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
asmparsertest: print error if unable to open file
util: add a simple set of matrix functions

For tests using the core profile we no longer have the legacy
GL matrix functions to set up transformations.  These functions
let us easily setup transformations in such test programs.

Reviewed-by: José Fonseca <jfonseca@vmware.com>