summaryrefslogtreecommitdiff
path: root/i965/brw_vs_constval.c
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2010-03-13 02:36:00 +0100
committerLuc Verhaegen <libv@skynet.be>2010-03-13 02:36:00 +0100
commitfedcb3219e8f9a587c693bbb2178ec3e83bf0320 (patch)
treeb37f142039934c27eb13d9ff2344776d7f92bff6 /i965/brw_vs_constval.c
parent6e23622cb869c14d82f8c901c4bbea80ded6220e (diff)
Import i915 and i965 dri drivers from mesa 7.1.0.7.1.0
Diffstat (limited to 'i965/brw_vs_constval.c')
-rw-r--r--i965/brw_vs_constval.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/i965/brw_vs_constval.c b/i965/brw_vs_constval.c
index caef042..a0106b8 100644
--- a/i965/brw_vs_constval.c
+++ b/i965/brw_vs_constval.c
@@ -166,7 +166,7 @@ static GLuint get_input_size(struct brw_context *brw,
/* Calculate sizes of vertex program outputs. Size is the largest
* component index which might vary from [0,0,0,1]
*/
-static void calc_wm_input_sizes( struct brw_context *brw )
+static int calc_wm_input_sizes( struct brw_context *brw )
{
/* BRW_NEW_VERTEX_PROGRAM */
struct brw_vertex_program *vp =
@@ -210,6 +210,7 @@ static void calc_wm_input_sizes( struct brw_context *brw )
memcpy(brw->wm.input_size_masks, t.size_masks, sizeof(t.size_masks));
brw->state.dirty.brw |= BRW_NEW_WM_INPUT_DIMENSIONS;
}
+ return 0;
}
const struct brw_tracked_state brw_wm_input_sizes = {
@@ -218,6 +219,6 @@ const struct brw_tracked_state brw_wm_input_sizes = {
.brw = BRW_NEW_VERTEX_PROGRAM | BRW_NEW_INPUT_DIMENSIONS,
.cache = 0
},
- .update = calc_wm_input_sizes
+ .prepare = calc_wm_input_sizes
};