mesa: Move register_allocate.c to util.
authorEric Anholt <eric@anholt.net>
Mon, 22 Sep 2014 19:24:21 +0000 (12:24 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Sep 2014 20:40:10 +0000 (13:40 -0700)
commit517e01b5c3db9ba750698096e823134b288e213f
treec45b171316ae6d599b6b19d4c3a5cc7960334491
parent5e1fcc625824ae962d5f658e151e6bc2665adce8
mesa: Move register_allocate.c to util.

The r300 gallium driver is using it outside of the Mesa tree, and I wanted
to do so for vc4 as well.  Rather than make the multiple-definitions
problem even more complicated, just move it to more-shared code.

v2: Don't forget to delete the symlink in r300 (review by Matt).
    Delete more r300-helper references (review by Emil)
    Don't prefix util/ header inclusion with "util/" (review by Emil)

Reviewed-by: Matt Turner <mattst88@gmail.com> (v1)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (v1)
18 files changed:
src/gallium/drivers/r300/Makefile.am
src/gallium/drivers/r300/Makefile.sources
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
src/gallium/drivers/r300/register_allocate.c [deleted symlink]
src/gallium/targets/egl-static/Makefile.am
src/gallium/targets/gbm/Makefile.am
src/gallium/targets/pipe-loader/Makefile.am
src/mesa/Makefile.sources
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/program/register_allocate.c [deleted file]
src/mesa/program/register_allocate.h [deleted file]
src/util/Makefile.am
src/util/Makefile.sources
src/util/register_allocate.c [new file with mode: 0644]
src/util/register_allocate.h [new file with mode: 0644]