diff options
author | Marek Olšák <marek.olsak@amd.com> | 2021-06-06 02:23:31 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-08-20 15:04:20 +0000 |
commit | bb89cf4bf396c84b0aadb6251a083214e6055600 (patch) | |
tree | 1a633322a1ae21277540a745b18464586f6fedd8 /src/gallium/drivers/nouveau/nv30/nv30_context.h | |
parent | 556c10c02c0aa8032aef53090671e22500e25745 (diff) |
gallium: add take_ownership into set_sampler_views to skip reference counting
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12334>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30/nv30_context.h')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_context.h b/src/gallium/drivers/nouveau/nv30/nv30_context.h index 95fc68fb8ac..7ea5c5b87af 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_context.h +++ b/src/gallium/drivers/nouveau/nv30/nv30_context.h @@ -188,11 +188,13 @@ nv40_verttex_sampler_states_bind(struct pipe_context *pipe, void nv40_verttex_set_sampler_views(struct pipe_context *pipe, unsigned nr, + bool take_ownership, struct pipe_sampler_view **views); void nv30_fragtex_set_sampler_views(struct pipe_context *pipe, - unsigned nr, struct pipe_sampler_view **views); + unsigned nr, bool take_ownership, + struct pipe_sampler_view **views); void nv30_push_vbo(struct nv30_context *nv30, const struct pipe_draw_info *info, |