[Mesa-dev] [PATCH 1/2] anv/blorp: Explicitly set row_pitch in do_buffer_copy

Pohjolainen, Topi topi.pohjolainen at gmail.com
Sat Jul 22 06:39:38 UTC 2017


On Fri, Jul 21, 2017 at 05:20:06PM -0700, Jason Ekstrand wrote:
> 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.

Both patches:

Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

> ---
>  src/intel/vulkan/anv_blorp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
> index 459d57e..1492802 100644
> --- a/src/intel/vulkan/anv_blorp.c
> +++ b/src/intel/vulkan/anv_blorp.c
> @@ -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,
> -- 
> 2.5.0.400.gff86faf
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list