Re: [Mesa-dev] [PATCH 07/10] radv/image: don't rescale width/height if the format isn't changing

2017-08-21 Thread Dave Airlie
On 21 August 2017 at 17:44, Bas Nieuwenhuizen wrote: > The old code would just do a * blocksize / blocksize , which is the > identity (as long as we don't overflow). Did this cause any issues? Nope, just seemed like unnecessary cpu usage. Dave.

Re: [Mesa-dev] [PATCH 07/10] radv/image: don't rescale width/height if the format isn't changing

2017-08-21 Thread Bas Nieuwenhuizen
The old code would just do a * blocksize / blocksize , which is the identity (as long as we don't overflow). Did this cause any issues? On Mon, Aug 21, 2017, at 09:34, Dave Airlie wrote: > From: Dave Airlie > > If the image view has the same format, we don't need to rescale

[Mesa-dev] [PATCH 07/10] radv/image: don't rescale width/height if the format isn't changing

2017-08-21 Thread Dave Airlie
From: Dave Airlie If the image view has the same format, we don't need to rescale the w/h. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_image.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git