iris: Move iris_sampler_view declaration to iris_resource.h
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Aug 2018 06:58:54 +0000 (23:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
We'll need this for resolve tracking.  There's also no genxml stuff here

src/gallium/drivers/iris/iris_resource.h
src/gallium/drivers/iris/iris_state.c

index 3fde5c13a960ee7920f10dee075d0d52e85a2ac7..979e17c3e5ddfe03c568a8bc28d7f3f76b76f818 100644 (file)
@@ -53,6 +53,24 @@ struct iris_state_ref {
 };
 
 /**
+ * Gallium CSO for sampler views (texture views).
+ *
+ * In addition to the normal pipe_resource, this adds an ISL view
+ * which may reinterpret the format or restrict levels/layers.
+ *
+ * These can also be linear texture buffers.
+ */
+struct iris_sampler_view {
+   struct pipe_sampler_view base;
+   struct isl_view view;
+
+   /** The resource (BO) holding our SURFACE_STATE. */
+   struct iris_state_ref surface_state;
+};
+
+/**
+ * Gallium CSO for surfaces (framebuffer attachments).
+ *
  * A view of a surface that can be bound to a color render target or
  * depth/stencil attachment.
  */
index f6a06bb79267d7582c685c854a15305eb628abc1..ff81ffa9f78f0752ef8367eb7aa559a659c27f4d 100644 (file)
@@ -1169,23 +1169,6 @@ iris_bind_sampler_states(struct pipe_context *ctx,
    ice->state.dirty |= IRIS_DIRTY_SAMPLER_STATES_VS << stage;
 }
 
-/**
- * Gallium CSO for sampler views (texture views).
- *
- * In addition to the normal pipe_resource, this adds an ISL view
- * which may reinterpret the format or restrict levels/layers.
- *
- * These can also be linear texture buffers.
- */
-struct iris_sampler_view {
-   // XXX: just store the resource, not the rest of this
-   struct pipe_sampler_view base;
-   struct isl_view view;
-
-   /** The resource (BO) holding our SURFACE_STATE. */
-   struct iris_state_ref surface_state;
-};
-
 /**
  * Convert an swizzle enumeration (i.e. PIPE_SWIZZLE_X) to one of the HW's
  * "Shader Channel Select" enumerations (i.e. SCS_RED).  The mappings are