summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_state_validate.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-03-09 15:30:08 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-03-10 16:30:03 +1000
commit139062946df4fba62a1e411073b61d4b0eeb034c (patch)
treea45ef07d701b1ca612018010d865c012c4dbcb03 /src/gallium/drivers/nv50/nv50_state_validate.c
parent7b7fcb08542ddd63ed6ef4c6304aade3684db948 (diff)
nv50: inline nv50_state_flush_notify()
It's (rightly) not called from anywhere else now
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state_validate.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state_validate.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index 61be3a45fd..2c8e7ca798 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -370,20 +370,6 @@ struct state_validate {
};
#define validate_list_len (sizeof(validate_list) / sizeof(validate_list[0]))
-void
-nv50_state_flush_notify(struct nouveau_channel *chan)
-{
- struct nv50_context *nv50 = chan->user_private;
-
- nv50_tex_relocs(nv50);
-
- so_emit_reloc_markers(chan, nv50->state.hw[0]); /* fb */
- so_emit_reloc_markers(chan, nv50->state.hw[3]); /* vp */
- so_emit_reloc_markers(chan, nv50->state.hw[4]); /* fp */
- so_emit_reloc_markers(chan, nv50->state.hw[17]); /* vb */
- so_emit_reloc_markers(chan, nv50->screen->static_init);
-}
-
boolean
nv50_state_validate(struct nv50_context *nv50, unsigned wait_dwords)
{
@@ -446,7 +432,12 @@ nv50_state_validate(struct nv50_context *nv50, unsigned wait_dwords)
* this the kernel is given no clue that the buffer is being used
* still. This can cause all sorts of fun issues.
*/
- nv50_state_flush_notify(chan);
+ nv50_tex_relocs(nv50);
+ so_emit_reloc_markers(chan, nv50->state.hw[0]); /* fb */
+ so_emit_reloc_markers(chan, nv50->state.hw[3]); /* vp */
+ so_emit_reloc_markers(chan, nv50->state.hw[4]); /* fp */
+ so_emit_reloc_markers(chan, nv50->state.hw[17]); /* vb */
+ so_emit_reloc_markers(chan, nv50->screen->static_init);
/* No idea.. */
BEGIN_RING(chan, tesla, 0x142c, 1);