projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9c144
)
i965: fix const correctness
author
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 23:14:13 +0000
(17:14 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 13 Mar 2009 00:25:09 +0000
(18:25 -0600)
src/mesa/drivers/dri/i965/brw_curbe.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_curbe.c
b/src/mesa/drivers/dri/i965/brw_curbe.c
index f90f72c7dbb14cf641d6395c1546280760fe1072..545dedd34ba6a120f6a59e937bb0fd89ccdb2f82 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/
src/mesa/drivers/dri/i965/brw_curbe.c
@@
-53,7
+53,7
@@
static void calculate_curbe_offsets( struct brw_context *brw )
GLuint nr_fp_regs = (brw->wm.prog_data->nr_params + 15) / 16;
/* BRW_NEW_VERTEX_PROGRAM */
-
struct brw_vertex_program *vp = brw_vertex_program
(brw->vertex_program);
+
const struct brw_vertex_program *vp = brw_vertex_program_const
(brw->vertex_program);
GLuint nr_vp_regs = (vp->program.Base.Parameters->NumParameters * 4 + 15) / 16;
GLuint nr_clip_regs = 0;
GLuint total_regs;