Module: Mesa
Branch: master
Commit: 941b893032c9b27ae3b02e1faf9269a464e2b63f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=941b893032c9b27ae3b02e1faf9269a464e2b63f

Author: Eric Anholt <[email protected]>
Date:   Mon Jul 26 04:20:33 2010 -0700

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.

---

 src/mesa/drivers/dri/i965/brw_vs_emit.c |    1 +
 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 a1bee2e..b6b558e 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,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to