summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-05-12 14:15:29 +0200
committerSamuel Pitoiset <[email protected]>2017-06-14 10:04:36 +0200
commit66a2589d00e38f0d25530ec70274cf42c35e1f9d (patch)
tree1ec97cf95bce8c3e94948234bc034878b3fd55b1 /src/mesa/state_tracker/st_context.h
parentb6b915afa45da8e0da3ad315f523051ae1b5d836 (diff)
st/mesa: add infrastructure for storing bound texture/image handles
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Nicolai Hähnle <[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.h11
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 770477a9bbb..f8e9bf96c52 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -79,6 +79,12 @@ struct st_bitmap_cache
ubyte *buffer;
};
+struct st_bound_handles
+{
+ unsigned num_handles;
+ uint64_t *handles;
+};
+
struct st_context
{
struct st_context_iface iface;
@@ -274,6 +280,11 @@ struct st_context
struct st_perf_monitor_group *perfmon;
enum pipe_reset_status reset_status;
+
+ /* Array of bound texture/image handles which are resident in the context.
+ */
+ struct st_bound_handles bound_texture_handles[PIPE_SHADER_TYPES];
+ struct st_bound_handles bound_image_handles[PIPE_SHADER_TYPES];
};