iris: Rework image views to store pipe_image_view.

This will be useful when rebinding images.
This commit is contained in:
Kenneth Graunke
2019-04-22 11:27:37 -07:00
parent 2f60850a3f
commit b45dff1da8
4 changed files with 52 additions and 35 deletions

View File

@@ -176,6 +176,16 @@ struct iris_sampler_view {
struct iris_state_ref surface_state;
};
/**
* Image view representation.
*/
struct iris_image_view {
struct pipe_image_view base;
/** The resource (BO) holding our SURFACE_STATE. */
struct iris_state_ref surface_state;
};
/**
* Gallium CSO for surfaces (framebuffer attachments).
*