iris: Move iris_sampler_view declaration to iris_resource.h

We'll need this for resolve tracking.  There's also no genxml stuff here
This commit is contained in:
Kenneth Graunke
2018-08-18 23:58:54 -07:00
parent b75b52530a
commit 3fecb1c44d
2 changed files with 18 additions and 17 deletions

View 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.
*/