panfrost: Create a new sampler view bo when the layout changes
[mesa.git] / src / gallium / drivers / panfrost / pan_context.h
index 22bc981181cd20c486ea8dd88b1c176061ea9ed0..306429648904fa257476c43da8ff9d85a0ecc20e 100644 (file)
@@ -266,6 +266,7 @@ struct panfrost_sampler_view {
         struct panfrost_bo *midgard_bo;
         struct panfrost_bo *bifrost_bo;
         struct bifrost_texture_descriptor *bifrost_descriptor;
+        enum mali_texture_layout layout;
 };
 
 static inline struct panfrost_context *
@@ -334,6 +335,11 @@ panfrost_shader_compile(struct panfrost_context *ctx,
 unsigned
 panfrost_ubo_count(struct panfrost_context *ctx, enum pipe_shader_type stage);
 
+void
+panfrost_create_sampler_view_bo(struct panfrost_sampler_view *so,
+                                struct pipe_context *pctx,
+                                struct pipe_resource *texture);
+
 /* Instancing */
 
 mali_ptr