radeon/vce: use nblk_y instead of npix_y
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Oct 2016 18:11:17 +0000 (20:11 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 11:02:58 +0000 (13:02 +0200)
commit8b94976df9996c222e5510f491fc865dae3bc412
treeed21bf8b3d9e04bc3a25284fbaf260ef0fdc4d18
parentba174b8dfff0777075f62a9188124d0bb22a5f17
radeon/vce: use nblk_y instead of npix_y

npix_y will be removed. level[0].npix_y will be removed too. nblk_y should
be the same as npix_y if the block height == 1. However, nblk_y is aligned
to the tile size, so it can be greater than npix_y.

If that's a problem, we'll have to save the input height of surface_init
and use that.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_vce_40_2_2.c
src/gallium/drivers/radeon/radeon_vce_50.c
src/gallium/drivers/radeon/radeon_vce_52.c