diff options
author | Rob Clark <[email protected]> | 2018-10-12 09:24:21 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-10-17 12:44:48 -0400 |
commit | e8606b11dd5f8a2c8df16a719b0fc8852ceb7977 (patch) | |
tree | 26dc8c8bb45afe72693793a677eaa678c94b97b7 /src/gallium/drivers/freedreno/freedreno_texture.c | |
parent | abcdf5627a29b7f1856b86bce4ff9bd0029a3099 (diff) |
freedreno: add resource seqno
Intended to be something more compact than a 64b pointer, which could be
used as a key into hashtables. Prep work for texture state objects.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_texture.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_texture.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_texture.c b/src/gallium/drivers/freedreno/freedreno_texture.c index 7c2057885b2..d92298d2ea5 100644 --- a/src/gallium/drivers/freedreno/freedreno_texture.c +++ b/src/gallium/drivers/freedreno/freedreno_texture.c @@ -117,9 +117,10 @@ fd_set_sampler_views(struct pipe_context *pctx, enum pipe_shader_type shader, void fd_texture_init(struct pipe_context *pctx) { - pctx->delete_sampler_state = fd_sampler_state_delete; - - pctx->sampler_view_destroy = fd_sampler_view_destroy; + if (!pctx->delete_sampler_state) + pctx->delete_sampler_state = fd_sampler_state_delete; + if (!pctx->sampler_view_destroy) + pctx->sampler_view_destroy = fd_sampler_view_destroy; } /* helper for setting up border-color buffer for a3xx/a4xx: */ |