Skip to content
Snippets Groups Projects
Commit 1726b7de authored by James Hogan's avatar James Hogan Committed by Marge Bot
Browse files

OVR_multiview: Add fb_shader_mismatch_draw_errors test


Add test that mismatches between multiview framebuffers and the
num_views declared in shaders result in the appropriate errors after
draw commands.

The test takes 2 arguments, the number of framebuffer views and the
number of views declared in the vertex shader. A glClear, triangle draw,
and glFinish are performed, and the appropriate error is checked for.

The test is run with a variety of arguments between 0 (non-multiview)
and 3 (3 views).

Tests between non-multiview and single multiview are omitted due to
uncertainty or abiguity over whether a non multiview FB/shader counts as
having 1 view or none?

Signed-off-by: default avatarJames Hogan <james@albanarts.com>
Acked-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <!987>
parent 8fdd4b20
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment