diff options
author | Jason Ekstrand <[email protected]> | 2015-12-07 17:17:30 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-12-07 21:08:22 -0800 |
commit | ff05f634f643ba867838d34c1a99d8152debe8ac (patch) | |
tree | 7ba2dc8c9cb1539214d5a52fd8a07251f8319114 /src/vulkan/anv_private.h | |
parent | 8f83222d3752f1855e6861ea5e29b5f2487b26e4 (diff) |
anv/image: Add a separate storage image surface state
Thanks to hardware limitations, storage images may need a different surface
format and/or other bits in the surface state.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index cb3f9a7b367..a6db547e5e3 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -1433,6 +1433,7 @@ struct anv_image { bool needs_nonrt_surface_state:1; bool needs_color_rt_surface_state:1; + bool needs_storage_surface_state:1; /** * Image subsurfaces @@ -1468,6 +1469,9 @@ struct anv_image_view { /** RENDER_SURFACE_STATE when using image as a non render target. */ struct anv_state nonrt_surface_state; + + /** RENDER_SURFACE_STATE when using image as a storage image. */ + struct anv_state storage_surface_state; }; struct anv_image_create_info { |