i965/fs: Move uses of brw_compile from do_wm_prog to brw_wm_fs_emit.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Nov 2012 00:21:27 +0000 (16:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 03:52:34 +0000 (19:52 -0800)
commit4d09fe938e72b26d814b6b52caee5112cf6f1103
tree602a18cd2ab4f0fc2a841501494e9267f4b80c8a
parent3417b2f2b249d89fc71379bfc0eaa1055de365ba
i965/fs: Move uses of brw_compile from do_wm_prog to brw_wm_fs_emit.

The brw_compile structure is closely tied to the Gen4-7 hardware
encoding.  However, do_wm_prog is very generic: it just calls out to
get a compiled program and then uploads it.

This isn't ultimately where we want it, but it's a step in the right
direction: it's now closer to the code generator.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h