diff options
author | Jason Ekstrand <[email protected]> | 2017-07-11 11:06:49 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-09-20 17:21:06 -0700 |
commit | 2c8058fb68a1e8cbc835272bd70c65eeac0779b9 (patch) | |
tree | 0431a6ef69eab51cab7f5d88fc97f80b574f79ce /src/intel/vulkan/anv_blorp.c | |
parent | 22e6858b2b1c76463072393412fb5085bb4ed157 (diff) |
anv: Add a new anv_surface_state struct
This struct represents a full surface state including the addresses of
the referenced main and auxiliary surfaces (if any). This makes
relocation setup substantially simpler and allows us to move 100% of the
surface state setup logic into anv_image where it belongs. Before, we
were manually fishing data out of surface states when emitting
relocations so we knew how to offset aux address. It's best to keep all
of the surface state emit logic together. This also gets us closer, at
least cosmetically, to a world of no relocations where addresses are
placed in surface states up-front.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 915643ffa3c..7f51bedb76f 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -915,7 +915,7 @@ clear_color_attachment(struct anv_cmd_buffer *cmd_buffer, uint32_t binding_table; VkResult result = - binding_table_for_surface_state(cmd_buffer, att_state->color_rt_state, + binding_table_for_surface_state(cmd_buffer, att_state->color.state, &binding_table); if (result != VK_SUCCESS) return; |