[Mesa-dev] [PATCH] radv: fix FMASK expand if layerCount is VK_REMAINING_ARRAY_LAYERS
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Thu Jun 27 00:15:34 UTC 2019
R-b
On Wed, Jun 26, 2019, 4:20 PM Samuel Pitoiset <samuel.pitoiset at gmail.com>
wrote:
> This doesn't fix anything known, but it's likely going to
> break if layerCount is ~0U.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_meta_fmask_expand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_meta_fmask_expand.c
> b/src/amd/vulkan/radv_meta_fmask_expand.c
> index c4cec58235f..7f3cbb2a6a6 100644
> --- a/src/amd/vulkan/radv_meta_fmask_expand.c
> +++ b/src/amd/vulkan/radv_meta_fmask_expand.c
> @@ -123,7 +123,7 @@ radv_expand_fmask_image_inplace(struct radv_cmd_buffer
> *cmd_buffer,
> radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer),
> VK_PIPELINE_BIND_POINT_COMPUTE, pipeline);
>
> - for (unsigned l = 0; l < subresourceRange->layerCount; l++) {
> + for (unsigned l = 0; l < radv_get_layerCount(image,
> subresourceRange); l++) {
> struct radv_image_view iview;
>
> radv_image_view_init(&iview, device,
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190627/45c2f174/attachment.html>
More information about the mesa-dev
mailing list