anv/blorp: Explicitly set row_pitch in do_buffer_copy
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 22 Jul 2017 00:14:52 +0000 (17:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 22 Jul 2017 15:20:07 +0000 (08:20 -0700)
We have a very specific row pitch that we want and we don't want ISL to
be changing it on us so just be explicit about it.

Fixes: a40f0430347c07bf2d5794642fe02f5dd248a473
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/anv_blorp.c

index 459d57ec5754a1e7a11b8ff8a97418daa8c4e7e5..14928029d337bce78dedb4723a497e0414e1b024 100644 (file)
@@ -564,10 +564,10 @@ do_buffer_copy(struct blorp_batch *batch,
                  .levels = 1,
                  .array_len = 1,
                  .samples = 1,
+                 .row_pitch = width * block_size,
                  .usage = ISL_SURF_USAGE_TEXTURE_BIT |
                           ISL_SURF_USAGE_RENDER_TARGET_BIT,
                  .tiling_flags = ISL_TILING_LINEAR_BIT);
-   assert(surf.row_pitch == width * block_size);
 
    struct blorp_surf src_blorp_surf = {
       .surf = &surf,