diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-08 13:22:52 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-21 10:54:16 +0200 |
commit | 615ba115632c602d2a77535c1d52024f827a0ace (patch) | |
tree | 1b54ad1d5c9628eaed11d9c164ed753cbfdbbcb7 /src/mesa/state_tracker/st_context.h | |
parent | b74c23138c34b908a05e5af98b231634df1b1b74 (diff) |
st/mesa: add readpix_cache structure
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index e3bee60d4d7..cc25e06111e 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -228,6 +228,16 @@ struct st_context struct pipe_resource *texture; } drawpix_cache; + /** for glReadPixels */ + struct { + struct pipe_resource *src; + struct pipe_resource *cache; + enum pipe_format dst_format; + unsigned level; + unsigned layer; + unsigned hits; + } readpix_cache; + /** for glClear */ struct { struct pipe_rasterizer_state raster; @@ -306,6 +316,7 @@ extern void st_init_driver_functions(struct pipe_screen *screen, void st_invalidate_state(struct gl_context * ctx, GLbitfield new_state); +void st_invalidate_readpix_cache(struct st_context *st); #define Y_0_TOP 1 |