diff options
author | Jason Ekstrand <[email protected]> | 2018-05-30 18:55:00 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-05-31 16:51:46 -0700 |
commit | bf34ef16ac7c5b59df936dc7a5932c9f518260d9 (patch) | |
tree | e7b986d2548cd2a12cca7de51811827493b0d443 /src/intel/vulkan/genX_cmd_buffer.c | |
parent | 1f2328c3b703c846749c2bef165618f068fa18ae (diff) |
anv: Use an address for each anv_image plane
This is better than having BO and offset fields.
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 97b0f86b990..97b321ccaeb 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -3371,8 +3371,8 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer) info.depth_address = anv_batch_emit_reloc(&cmd_buffer->batch, dw + device->isl_dev.ds.depth_offset / 4, - image->planes[depth_plane].bo, - image->planes[depth_plane].bo_offset + + image->planes[depth_plane].address.bo, + image->planes[depth_plane].address.offset + surface->offset); const uint32_t ds = @@ -3384,8 +3384,8 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer) info.hiz_address = anv_batch_emit_reloc(&cmd_buffer->batch, dw + device->isl_dev.ds.hiz_offset / 4, - image->planes[depth_plane].bo, - image->planes[depth_plane].bo_offset + + image->planes[depth_plane].address.bo, + image->planes[depth_plane].address.offset + image->planes[depth_plane].aux_surface.offset); info.depth_clear_value = ANV_HZ_FC_VAL; @@ -3402,8 +3402,9 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer) info.stencil_address = anv_batch_emit_reloc(&cmd_buffer->batch, dw + device->isl_dev.ds.stencil_offset / 4, - image->planes[stencil_plane].bo, - image->planes[stencil_plane].bo_offset + surface->offset); + image->planes[stencil_plane].address.bo, + image->planes[stencil_plane].address.offset + + surface->offset); } isl_emit_depth_stencil_hiz_s(&device->isl_dev, dw, &info); |