[Mesa-dev] [PATCH 1/2] anv: Fix vkCmdFillBuffer()

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Oct 2 19:19:09 UTC 2017


I guess it makes things clearer.
Does this fix something?

On 02/10/17 18:58, Józef Kucia wrote:
> The vkCmdFillBuffer() command fills a buffer with an uint32_t value.
> ---
>   src/intel/vulkan/anv_blorp.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
> index 8d0c275248..a8ebdb384c 100644
> --- a/src/intel/vulkan/anv_blorp.c
> +++ b/src/intel/vulkan/anv_blorp.c
> @@ -533,8 +533,8 @@ isl_format_for_size(unsigned size_B)
>      switch (size_B) {
>      case 1:  return ISL_FORMAT_R8_UINT;
>      case 2:  return ISL_FORMAT_R8G8_UINT;
> -   case 4:  return ISL_FORMAT_R8G8B8A8_UINT;
> -   case 8:  return ISL_FORMAT_R16G16B16A16_UINT;
> +   case 4:  return ISL_FORMAT_R32_UINT;
> +   case 8:  return ISL_FORMAT_R32G32_UINT;
>      case 16: return ISL_FORMAT_R32G32B32A32_UINT;
>      default:
>         unreachable("Not a power-of-two format size");




More information about the mesa-dev mailing list