diff options
author | Jason Ekstrand <[email protected]> | 2017-07-11 10:06:36 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-09-20 17:21:06 -0700 |
commit | 22e6858b2b1c76463072393412fb5085bb4ed157 (patch) | |
tree | 4f7ead6cd6a82a3fb5ea4084ff360cf6d3c5fcf7 /src/intel/vulkan/anv_private.h | |
parent | c7716718ace83545844cfd042987fb693085fed6 (diff) |
anv/image: Break surface state fill logic into a helper
This gives us a single centralized place where we take an image view and
use it to fill out a surface state.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index df8de8d9407..ee7672fc807 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -2393,6 +2393,22 @@ struct anv_image_view { struct brw_image_param storage_image_param; }; +enum anv_image_view_state_flags { + ANV_IMAGE_VIEW_STATE_STORAGE_WRITE_ONLY = (1 << 0), + ANV_IMAGE_VIEW_STATE_TEXTURE_OPTIMAL = (1 << 1), +}; + +void anv_image_fill_surface_state(struct anv_device *device, + const struct anv_image *image, + VkImageAspectFlagBits aspect, + const struct isl_view *view, + isl_surf_usage_flags_t view_usage, + enum isl_aux_usage aux_usage, + const union isl_color_value *clear_color, + enum anv_image_view_state_flags flags, + struct anv_state *state, + struct brw_image_param *image_param_out); + struct anv_image_create_info { const VkImageCreateInfo *vk_info; |