Revert "Fix overfetch fault copying from dynamic state"
This reverts commit 4a51c758d6d2806996b1e5554a8b2bcf6fb6c0bc.
Change-Id: I90071a51db25f91a7256ad66ce0a033309b20a99
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index 262321e..2903939 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -683,9 +683,6 @@
assert(max_update_size < MAX_SURFACE_DIM * 4);
- /* Vulkan spec requires dataSize to be a multiple of 4. */
- assert(dataSize % 4 == 0);
-
/* We're about to read data that was written from the CPU. Flush the
* texture cache so we don't get anything stale.
*/
@@ -710,7 +707,7 @@
&cmd_buffer->device->dynamic_state_block_pool.bo,
tmp_data.offset,
dst_buffer->bo, dst_buffer->offset + dstOffset,
- copy_size / 4 / bs, 4, bs);
+ copy_size / bs, 1, bs);
dataSize -= copy_size;
dstOffset += copy_size;