diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-19 17:34:45 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-20 10:14:52 +0200 |
commit | f00e80e3f7d357d1540f4e743e44b199265d6f56 (patch) | |
tree | 6e86bc193710695224444a10c562ff4c2d7ec183 /src | |
parent | bf5ca4f0b2e145064194ec0470258439b8a2e44e (diff) |
radeonsi: keep track of the sampler state for texture handles
Needed for updating all resident texture descriptors when
dirty_tex_counter changes.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index cb9c47c0d83..e792cf63d50 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -2297,6 +2297,7 @@ static uint64_t si_create_texture_handle(struct pipe_context *ctx, } si_set_sampler_view_desc(sctx, sview, sstate, &desc_list[0]); + memcpy(&tex_handle->sstate, sstate, sizeof(*sstate)); ctx->delete_sampler_state(ctx, sstate); tex_handle->desc = si_create_bindless_descriptor(sctx, desc_list, diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index afe68a3d35d..0c77f933127 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -243,6 +243,7 @@ struct si_texture_handle { struct si_bindless_descriptor *desc; struct pipe_sampler_view *view; + struct si_sampler_state sstate; }; struct si_image_handle |