iris: stencil texturing

This commit is contained in:
Kenneth Graunke
2018-10-04 19:49:06 -07:00
parent 9b229d266d
commit 90b9efc1f9
4 changed files with 24 additions and 7 deletions

View File

@@ -64,6 +64,12 @@ struct iris_sampler_view {
struct pipe_sampler_view base;
struct isl_view view;
/* A short-cut (not a reference) to the actual resource being viewed.
* Multi-planar (or depth+stencil) images may have multiple resources
* chained together; this skips having to traverse base->texture->*.
*/
struct iris_resource *res;
/** The resource (BO) holding our SURFACE_STATE. */
struct iris_state_ref surface_state;
};