nv50: move nva0_so_target_save_offset() to its correct location
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 18 Oct 2015 16:33:41 +0000 (18:33 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 30 Oct 2015 16:57:15 +0000 (17:57 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nv50/nv50_query.h
src/gallium/drivers/nouveau/nv50/nv50_state.c

index 7718d69b308d4e92b9f904ff0a3d8218293cafec..1b4abdbb99bd7c359ec0fca5d8a41b27a97eab3c 100644 (file)
@@ -443,24 +443,6 @@ nv50_query_pushbuf_submit(struct nouveau_pushbuf *push, uint16_t method,
    PUSH_DATA (push, q->data[result_offset / 4]);
 }
 
-void
-nva0_so_target_save_offset(struct pipe_context *pipe,
-                           struct pipe_stream_output_target *ptarg,
-                           unsigned index, bool serialize)
-{
-   struct nv50_so_target *targ = nv50_so_target(ptarg);
-
-   if (serialize) {
-      struct nouveau_pushbuf *push = nv50_context(pipe)->base.pushbuf;
-      PUSH_SPACE(push, 2);
-      BEGIN_NV04(push, SUBC_3D(NV50_GRAPH_SERIALIZE), 1);
-      PUSH_DATA (push, 0);
-   }
-
-   nv50_query(targ->pq)->index = index;
-   nv50_query_end(pipe, targ->pq);
-}
-
 void
 nv50_init_query_functions(struct nv50_context *nv50)
 {
index 722af0c4af73916ea1cd5eee418e6b6ce653f09f..a7030133f569d05c31a4ee70ac26ea2e6cbe41aa 100644 (file)
@@ -33,8 +33,5 @@ void nv50_init_query_functions(struct nv50_context *);
 void nv50_query_pushbuf_submit(struct nouveau_pushbuf *, uint16_t,
                                struct nv50_query *, unsigned result_offset);
 void nv84_query_fifo_wait(struct nouveau_pushbuf *, struct nv50_query *);
-void nva0_so_target_save_offset(struct pipe_context *,
-                                struct pipe_stream_output_target *,
-                                unsigned, bool);
 
 #endif
index 671c8ab629c98ae01e7030f9ef8bf65bb8d4b5c5..a78afc9d216b26d6aa57d4b110d5d95b872e3b25 100644 (file)
@@ -1059,6 +1059,24 @@ nv50_so_target_create(struct pipe_context *pipe,
    return &targ->pipe;
 }
 
+static void
+nva0_so_target_save_offset(struct pipe_context *pipe,
+                           struct pipe_stream_output_target *ptarg,
+                           unsigned index, bool serialize)
+{
+   struct nv50_so_target *targ = nv50_so_target(ptarg);
+
+   if (serialize) {
+      struct nouveau_pushbuf *push = nv50_context(pipe)->base.pushbuf;
+      PUSH_SPACE(push, 2);
+      BEGIN_NV04(push, SUBC_3D(NV50_GRAPH_SERIALIZE), 1);
+      PUSH_DATA (push, 0);
+   }
+
+   nv50_query(targ->pq)->index = index;
+   pipe->end_query(pipe, targ->pq);
+}
+
 static void
 nv50_so_target_destroy(struct pipe_context *pipe,
                        struct pipe_stream_output_target *ptarg)