summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_sampler_view.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-12 01:00:04 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commitf0ecd36ef8e10c087738c92cf62bad3815366963 (patch)
tree96d4e61900810824132c07d87a1a8eede782a435 /src/mesa/state_tracker/st_sampler_view.h
parentfbd9cc61694dcb59b3d2a742073ed231f848702d (diff)
st/mesa: add an entirely separate codepath for setting up buffer views
Remove handling of buffers from all texture paths. This simplifies things for both buffers and textures. get_sampler_view_format is also cleaned up not to call util_format_is_depth_and_stencil. v2: also update st_NewTextureHandle Reviewed-by: Nicolai Hähnle <[email protected]> (v1)
Diffstat (limited to 'src/mesa/state_tracker/st_sampler_view.h')
-rw-r--r--src/mesa/state_tracker/st_sampler_view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_sampler_view.h b/src/mesa/state_tracker/st_sampler_view.h
index 6825cebdf6d..b08ca4a70f2 100644
--- a/src/mesa/state_tracker/st_sampler_view.h
+++ b/src/mesa/state_tracker/st_sampler_view.h
@@ -75,5 +75,8 @@ st_get_texture_sampler_view_from_stobj(struct st_context *st,
const struct gl_sampler_object *samp,
unsigned glsl_version);
+struct pipe_sampler_view *
+st_get_buffer_sampler_view_from_stobj(struct st_context *st,
+ struct st_texture_object *stObj);
#endif /* ST_SAMPLER_VIEW_H */