i965: Allow VS MOVs to use immediate constants.
authorEric Anholt <eric@anholt.net>
Mon, 26 Jul 2010 11:20:33 +0000 (04:20 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 26 Jul 2010 17:11:31 +0000 (10:11 -0700)
Clarifies program assembly, and with a little tweak to always use
constant_map, we could cut down on constant buffer payload.

src/mesa/drivers/dri/i965/brw_vs_emit.c

index a1bee2e44ab9bfb1a61dc0d7762b39d506d50162..b6b558e9a69b68027c2b0b728199cf0d99a494a4 100644 (file)
@@ -44,6 +44,7 @@ static GLboolean
 brw_vs_arg_can_be_immediate(enum prog_opcode opcode, int arg)
 {
    int opcode_array[] = {
+      [OPCODE_MOV] = 1,
       [OPCODE_ADD] = 2,
       [OPCODE_CMP] = 3,
       [OPCODE_DP3] = 2,