i965/vs: Add a unit test for opt_compute_to_mrf().
authorEric Anholt <eric@anholt.net>
Sat, 1 Dec 2012 07:52:38 +0000 (23:52 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 15 Dec 2012 00:06:01 +0000 (16:06 -0800)
commita76a03f437df3c6458da5b0e9e70fd4d986fbdae
tree9bd66959f920da48248dabafb9f2aef9a7b53f1b
parent7171c45d3a6392b947d96c10362ce0459b741669
i965/vs: Add a unit test for opt_compute_to_mrf().

The compute-to-mrf code is really twitchy, and it's hard to construct
GLSL testcases for it.  This unit test is also really hard to work with
(for example, if your instruction is removed by dead code elimination,
you end up inspecting something irrelevant), but I did use it for
debugging some of the commits to follow.

I called it test_vec4_register_coalesce because the compute-to-mrf code
is about to morph into that.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/.gitignore
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp [new file with mode: 0644]