projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdd4f04
)
i965: Fix VS constants regression pre-gen6.
author
Eric Anholt
<eric@anholt.net>
Thu, 9 Dec 2010 17:17:59 +0000
(09:17 -0800)
committer
Eric Anholt
<eric@anholt.net>
Thu, 9 Dec 2010 18:50:59 +0000
(10:50 -0800)
Last minute change for gen6 with 0 used params dropped the multiply.
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 e1a3f333932f2f01cd585256c4c45c060a6d1781..b7771e66d5910d8e136c9c330d72a7a1ea2d3a6d 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/
src/mesa/drivers/dri/i965/brw_vs_emit.c
@@
-254,7
+254,7
@@
static void brw_vs_alloc_regs( struct brw_vs_compile *c )
}
reg += (constant + 1) / 2;
c->prog_data.curb_read_length = reg - 1;
- c->prog_data.nr_params = constant;
+ c->prog_data.nr_params = constant
* 4
;
/* XXX 0 causes a bug elsewhere... */
if (intel->gen < 6 && c->prog_data.nr_params == 0)
c->prog_data.nr_params = 4;