projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25cbf9b
)
i965g: make the load-before-use vs immediate path work
author
Keith Whitwell
<keithw@vmware.com>
Thu, 19 Nov 2009 23:04:00 +0000
(15:04 -0800)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 19 Nov 2009 23:04:00 +0000
(15:04 -0800)
src/gallium/drivers/i965/brw_vs_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i965/brw_vs_emit.c
b/src/gallium/drivers/i965/brw_vs_emit.c
index bcaeaca62dbee4b35fdce71e57a4e102b51e6767..52d4731dfde2f0554ddc4f3a2ec52d23ecef969d 100644
(file)
--- a/
src/gallium/drivers/i965/brw_vs_emit.c
+++ b/
src/gallium/drivers/i965/brw_vs_emit.c
@@
-202,7
+202,8
@@
static void brw_vs_alloc_regs( struct brw_vs_compile *c )
struct brw_reg r;
int j;
- r = brw_vec8_grf(reg, 0);
+ c->regs[TGSI_FILE_IMMEDIATE][i] =
+ r = brw_vec8_grf(reg, 0);
for (j = 0; j < 4; j++) {
brw_MOV(&c->func,
@@
-1628,7
+1629,7
@@
void brw_vs_emit(struct brw_vs_compile *c)
case TGSI_TOKEN_TYPE_IMMEDIATE: {
static const float id[4] = {0,0,0,1};
- const float *imm = &parse.FullToken.FullImmediate.u[
i
].Float;
+ const float *imm = &parse.FullToken.FullImmediate.u[
0
].Float;
unsigned size = parse.FullToken.FullImmediate.Immediate.NrTokens - 1;
for (i = 0; i < size; i++)