gallium/auxiliary/vl: Fix compute shader scaling for non-square pixels
authorThong Thai <thong.thai@amd.com>
Fri, 15 May 2020 18:07:05 +0000 (14:07 -0400)
committerThong Thai <thong.thai@amd.com>
Sat, 16 May 2020 02:17:26 +0000 (02:17 +0000)
commit494b7ef0c1a440c57f5a6a8a301fba4f7e551417
tree9b4506b96eef2726c4c4850a504f23c9c8acfec8
parentfd6a5e112aa1fd09bc01f4cf3ca211ad73cc404e
gallium/auxiliary/vl: Fix compute shader scaling for non-square pixels

Calculate the scale_y parameter instead of assuming square pixels.

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5057>
src/gallium/auxiliary/vl/vl_compositor_cs.c