diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2020-06-05 11:20:55 +0200 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2020-06-19 10:39:08 +0200 |
commit | b6db703e0f007fbcf4389ec607ae4c3e8fc9ee0d (patch) | |
tree | bed051d924657a96679079e5f985991cb103336e /src/mesa/state_tracker/st_texture.h | |
parent | 993c64e6fe70d458ad76b86232aabb4196d3a9a9 (diff) |
st/mesa: make texture views inherit compressed_data storage
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2775
Fixes: c3fafa127a0 ("st/mesa: generalize code for the compressed texture map/unmap fallback")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5492>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r-- | src/mesa/state_tracker/st_texture.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h index 7948daa6542..7a9ac150b70 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -78,6 +78,12 @@ struct st_sampler_views struct st_sampler_view views[0]; }; +struct st_compressed_data +{ + struct pipe_reference reference; + GLubyte *ptr; +}; + /** * Subclass of gl_texure_image. @@ -101,7 +107,7 @@ struct st_texture_image * the original data. This is necessary for mapping/unmapping, * as well as image copies. */ - GLubyte *compressed_data; + struct st_compressed_data* compressed_data; }; |