diff options
author | Ilia Mirkin <[email protected]> | 2016-02-15 20:34:52 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-03-30 22:57:17 -0400 |
commit | ebdb5345480957c4fc3068fab17926be28d7dcd4 (patch) | |
tree | 49555054d5ca9dd5142ea98978d87a10ff6b10cf /src/mesa/state_tracker/st_extensions.c | |
parent | 571f538a622d9a7050015b58b7b1ac240f289dcb (diff) |
mesa: add GL_OES_copy_image support
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 0a25770aa02..8748ab5c876 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -927,6 +927,17 @@ void st_init_extensions(struct pipe_screen *screen, extensions->OES_sample_variables = extensions->ARB_sample_shading && extensions->ARB_gpu_shader5; + /* If we don't have native ETC2 support, we don't keep track of the + * original ETC2 data. This is necessary to be able to copy images between + * compatible view classes. + */ + if (extensions->ARB_copy_image && screen->is_format_supported( + screen, PIPE_FORMAT_ETC2_RGB8, + PIPE_TEXTURE_2D, 0, + PIPE_BIND_SAMPLER_VIEW)) { + extensions->OES_copy_image = GL_TRUE; + } + /* Maximum sample count. */ { enum pipe_format color_formats[] = { |