summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_vs_emit.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-26 04:20:33 -0700
committerEric Anholt <eric@anholt.net>2010-07-26 10:11:31 -0700
commit941b893032c9b27ae3b02e1faf9269a464e2b63f (patch)
treebafa16b2bb6ea238ca1ad0eddaf3fb08dcbc3746 /src/mesa/drivers/dri/i965/brw_vs_emit.c
parent0bebdc230ff09f191cfa269c2cbcbb257fd2e0fc (diff)
i965: Allow VS MOVs to use immediate constants.
Clarifies program assembly, and with a little tweak to always use constant_map, we could cut down on constant buffer payload.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs_emit.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs_emit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index a1bee2e44a..b6b558e9a6 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -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,