gallium + mesa/st: Add PIPE_CAP_NIR_ATOMICS_AS_DEREF and use it
[mesa.git] / src / mesa / state_tracker / st_sampler_view.h
index d4c38bccdce93e75b6af0b610b5c4685f1ce4b81..1bd664d3ba61aa9776dc8f840933d3853282b0e7 100644 (file)
@@ -57,27 +57,31 @@ st_create_texture_sampler_view(struct pipe_context *pipe,
 }
 
 
-extern struct pipe_sampler_view **
-st_texture_get_sampler_view(struct st_context *st,
-                            struct st_texture_object *stObj);
-
 extern void
-st_texture_release_sampler_view(struct st_context *st,
-                                struct st_texture_object *stObj);
+st_texture_release_context_sampler_view(struct st_context *st,
+                                        struct st_texture_object *stObj);
 
 extern void
 st_texture_release_all_sampler_views(struct st_context *st,
                                      struct st_texture_object *stObj);
 
 void
-st_texture_free_sampler_views(struct st_texture_object *stObj);
+st_delete_texture_sampler_views(struct st_context *st,
+                                struct st_texture_object *stObj);
 
+const struct st_sampler_view *
+st_texture_get_current_sampler_view(const struct st_context *st,
+                                    const struct st_texture_object *stObj);
 
 struct pipe_sampler_view *
 st_get_texture_sampler_view_from_stobj(struct st_context *st,
                                        struct st_texture_object *stObj,
                                        const struct gl_sampler_object *samp,
-                                       unsigned glsl_version);
+                                       bool glsl130_or_later,
+                                       bool ignore_srgb_decode);
 
+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 */