projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bebdc2
)
i965: Allow VS MOVs to use immediate constants.
author
Eric Anholt
<eric@anholt.net>
Mon, 26 Jul 2010 11:20:33 +0000
(
04:20
-0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vs_emit.c
b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index a1bee2e44ab9bfb1a61dc0d7762b39d506d50162..b6b558e9a69b68027c2b0b728199cf0d99a494a4 100644
(file)
--- 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,