summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_pbo.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-04-26 13:19:28 -0500
committerNicolai Hähnle <[email protected]>2016-06-01 22:37:51 +0200
commited0e9862c56d13381f0414b5a835fd31960edfe6 (patch)
tree22e63b01c43ee3a6b09af1b6e4a77cf22f0b055d /src/mesa/state_tracker/st_pbo.h
parentf3b62d4c74414c002d25e65decb9d0bda41ab5b6 (diff)
st/mesa: implement PBO downloads for ReadPixels
v2: require PIPE_CAP_SAMPLER_VIEW_TARGET; technically only needed for some of the texture targets, but all hardware that has shader images should also have this cap. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_pbo.h')
-rw-r--r--src/mesa/state_tracker/st_pbo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_pbo.h b/src/mesa/state_tracker/st_pbo.h
index 14ae6ba23e6..17359c47733 100644
--- a/src/mesa/state_tracker/st_pbo.h
+++ b/src/mesa/state_tracker/st_pbo.h
@@ -70,6 +70,10 @@ st_pbo_addresses_pixelstore(struct st_context *st,
const void *pixels,
struct st_pbo_addresses *addr);
+void
+st_pbo_addresses_invert_y(struct st_pbo_addresses *addr,
+ unsigned viewport_height);
+
bool
st_pbo_draw(struct st_context *st, const struct st_pbo_addresses *addr,
unsigned surface_width, unsigned surface_height);