Reviewed-by: Dave Airlie <airl...@redhat.com>
for the series. On Mon, 3 Sep 2018 at 10:39, Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> wrote: > > Mirrors > > 1e40f694831 "ac/surface: fix CMASK fast clear for NPOT textures with > mipmapping on SI/CI/VI" > > CC: <mesa-sta...@lists.freedesktop.org> > --- > src/amd/vulkan/radv_image.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c > index f1c78e8115d..b316242dc5a 100644 > --- a/src/amd/vulkan/radv_image.c > +++ b/src/amd/vulkan/radv_image.c > @@ -801,8 +801,8 @@ radv_image_get_cmask_info(struct radv_device *device, > > unsigned base_align = num_pipes * pipe_interleave_bytes; > > - unsigned width = align(image->info.width, cl_width*8); > - unsigned height = align(image->info.height, cl_height*8); > + unsigned width = align(image->surface.u.legacy.level[0].nblk_x, > cl_width*8); > + unsigned height = align(image->surface.u.legacy.level[0].nblk_y, > cl_height*8); > unsigned slice_elements = (width * height) / (8*8); > > /* Each element of CMASK is a nibble. */ > -- > 2.18.0 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev