diff options
author | Kenneth Graunke <[email protected]> | 2018-10-04 19:49:06 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:09 -0800 |
commit | 90b9efc1f97134b417db39049c8fb0bfb16078c9 (patch) | |
tree | 5920220684018fdd06ad58172376c5d8b5cf041f /src/gallium/drivers/iris/iris_resource.h | |
parent | 9b229d266df169a58199fd86ac15bf709984dbe5 (diff) |
iris: stencil texturing
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.h b/src/gallium/drivers/iris/iris_resource.h index 979e17c3e5d..6aa16c09d4c 100644 --- a/src/gallium/drivers/iris/iris_resource.h +++ b/src/gallium/drivers/iris/iris_resource.h @@ -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; }; |