diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2015-10-17 00:14:28 +0200 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2015-10-30 17:57:15 +0100 |
commit | 2e3fe0379edd4c0c2c6e87a53b077d77e5fff24e (patch) | |
tree | c31052a932a518931df479a9bd98ffba9640d570 /src/gallium/drivers/nouveau/nv50/nv50_shader_state.c | |
parent | e7ed3963ed33134cc214f0a8b8e4b8cb6029887d (diff) | |
download | external_mesa3d-2e3fe0379edd4c0c2c6e87a53b077d77e5fff24e.zip external_mesa3d-2e3fe0379edd4c0c2c6e87a53b077d77e5fff24e.tar.gz external_mesa3d-2e3fe0379edd4c0c2c6e87a53b077d77e5fff24e.tar.bz2 |
nv50: add a header file for nv50_query
Like for nvc0, this will allow to split different types of queries and
to prepare the way for both global performance counters and MP counters.
While we are at it, make use of nv50_query struct instead of pipe_query.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_shader_state.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_shader_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c index b3fece0..6b3ecbf 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c @@ -641,7 +641,7 @@ nv50_stream_output_validate(struct nv50_context *nv50) const unsigned n = nv50->screen->base.class_3d >= NVA0_3D_CLASS ? 4 : 3; if (n == 4 && !targ->clean) - nv84_query_fifo_wait(push, targ->pq); + nv84_query_fifo_wait(push, nv50_query(targ->pq)); BEGIN_NV04(push, NV50_3D(STRMOUT_ADDRESS_HIGH(i)), n); PUSH_DATAh(push, buf->address + targ->pipe.buffer_offset); PUSH_DATA (push, buf->address + targ->pipe.buffer_offset); @@ -651,7 +651,7 @@ nv50_stream_output_validate(struct nv50_context *nv50) if (!targ->clean) { assert(targ->pq); nv50_query_pushbuf_submit(push, NVA0_3D_STRMOUT_OFFSET(i), - targ->pq, 0x4); + nv50_query(targ->pq), 0x4); } else { BEGIN_NV04(push, NVA0_3D(STRMOUT_OFFSET(i)), 1); PUSH_DATA(push, 0); |