mesa: fix texStore for FORMAT_Z32_FLOAT_S8X24_UINT
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Tue, 30 Jul 2019 08:13:15 +0000 (04:13 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 13 Sep 2019 03:28:28 +0000 (23:28 -0400)
commit33aa039acf9ca8d1049a772e97ecdf769416aeb4
treed5b624e43250786038750b6d6c3ba02fb4e38d8f
parentb4df115d3f3c7e5a1f6105c3737d0fe9a80dfcf2
mesa: fix texStore for FORMAT_Z32_FLOAT_S8X24_UINT

_mesa_texstore_z32f_x24s8 calculates source rowStride at a
pace of 64-bit, this will make inaccuracy offset if the width
of src image is an odd number. Modify src pointer to int_32* as
source image format is gl_float which is 32-bit per pixel.

Reviewed by Ilia Mirkin

Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/texstore.c [changed mode: 0644->0755]