diff options
author | Wladimir J. van der Laan <[email protected]> | 2017-11-18 10:44:39 +0100 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-11-30 07:33:16 +0100 |
commit | 075f8cd7de2506c6085cf898f827edf4551e05f2 (patch) | |
tree | 5dba1bc04fe8f12ce4e4640ff20ce14ba6e5ef14 /src/gallium/drivers/etnaviv/etnaviv_texture.c | |
parent | 260a5e2a1a2490a7f147ed3e04021924cd0fe7cf (diff) |
etnaviv: GC7000: Move active_samplers_bits to texture
This needs to be shared between texture_plain and texture_desc.
Signed-off-by: Wladimir J. van der Laan <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_texture.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_texture.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_texture.c b/src/gallium/drivers/etnaviv/etnaviv_texture.c index ad0ea162054..55b92f65e1e 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_texture.c +++ b/src/gallium/drivers/etnaviv/etnaviv_texture.c @@ -432,6 +432,12 @@ etna_texture_barrier(struct pipe_context *pctx, unsigned flags) etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, VIVS_GL_FLUSH_CACHE_COLOR | VIVS_GL_FLUSH_CACHE_TEXTURE); } +uint32_t +active_samplers_bits(struct etna_context *ctx) +{ + return ctx->active_sampler_views & ctx->active_samplers; +} + void etna_texture_init(struct pipe_context *pctx) { |