From: Jason Ekstrand Date: Sat, 11 Nov 2017 19:52:41 +0000 (-0800) Subject: anv/cmd_buffer: Take bo_offset into account in fast clear state addresses X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a07f7b26198ce0f5c8799481a673754968ac5daf;p=mesa.git anv/cmd_buffer: Take bo_offset into account in fast clear state addresses Otherwise, if the image is not bound to the start of the buffer, we're going to be reading and writing its fast clear state in the wrong spot. Reviewed-by: Lionel Landwerlin Cc: mesa-stable@lists.freedesktop.org --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 53d8d660435..da4691121b7 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -461,7 +461,7 @@ get_fast_clear_state_address(const struct anv_device *device, return (struct anv_address) { .bo = image->planes[plane].bo, - .offset = offset, + .offset = image->planes[plane].bo_offset + offset, }; }