i965: Initialize registers.
authorMatt Turner <mattst88@gmail.com>
Fri, 30 Oct 2015 20:53:38 +0000 (13:53 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 19:27:50 +0000 (11:27 -0800)
commitdba309fc14d1ca99251c8f8115d2a26ac86f14f6
tree75c97c56e037e01d9f03f0d59cb95d2ad75b1137
parent7638e75cf99263c1ee8e31c6cc5a319feec2c943
i965: Initialize registers.

The test (file == BAD_FILE) works on registers for which the constructor
has not run because BAD_FILE is zero.  The next commit will move
BAD_FILE in the enum so that it's no longer zero.

In the case of this->outputs, the constructor was being run implicitly,
and we were unnecessarily memsetting is to zero.

Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp