i965: Move the WM input sizes calculation to emit() time.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:34:49 +0000 (11:34 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:17:07 +0000 (12:17 -0700)
It's used for program compile.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vs_constval.c

index 013a9cc4005175c276a82c846d70987ce0d66b1d..8b7993a7dec2286c0345db6a78993442ee722a75 100644 (file)
@@ -237,6 +237,6 @@ const struct brw_tracked_state brw_wm_input_sizes = {
       .brw   = BRW_NEW_VERTEX_PROGRAM | BRW_NEW_INPUT_DIMENSIONS,
       .cache = 0
    },
-   .prepare = calc_wm_input_sizes
+   .emit = calc_wm_input_sizes
 };