summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-04-25 21:56:47 -0500
committerNicolai Hähnle <[email protected]>2016-06-01 22:37:34 +0200
commit852d3fcd3b4e0a1612540045f18c46975a49dec6 (patch)
treed3f6af7cda1639c98444aa302372c93d71ec5909 /src/mesa/state_tracker/st_context.h
parent581c001532fb9890b0f66b8e78ab134a16ae56ce (diff)
st/mesa: add PBO download enable bit and fragment shaders
For downloads, the fragment shader must know the source texture target, hence we may cache multiple fragment shaders. v2: break long line (Marek) Reviewed-by: Brian Paul <[email protected]> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 39ea501d93d..a4f56eac7f8 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -240,7 +240,9 @@ struct st_context
void *vs;
void *gs;
void *upload_fs;
+ void *download_fs[PIPE_MAX_TEXTURE_TYPES];
bool upload_enabled;
+ bool download_enabled;
bool rgba_only;
bool layers;
bool use_gs;