util/format: Change the pointer offset.
Changed the pointer offset to 2 to account for the second structure variable.
Fixes: 90f98b56f8 ("mesa: Deduplicate _mesa_pack_uint_z_row().")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4685
Signed-off-by: Sergii Melikhov <sergii.v.melikhov@globallogic.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11060>
This commit is contained in:
committed by
Marge Bot
parent
447e80ac9b
commit
8251bd216e
@@ -858,7 +858,8 @@ util_format_z32_float_s8x24_uint_pack_z_32unorm(uint8_t *restrict dst_row, unsig
|
||||
const uint32_t *src = src_row;
|
||||
float *dst = (float *)dst_row;
|
||||
for(x = 0; x < width; ++x) {
|
||||
*dst++ = z32_unorm_to_z32_float(*src++);
|
||||
*dst = z32_unorm_to_z32_float(*src++);
|
||||
dst += 2;
|
||||
}
|
||||
dst_row += dst_stride/sizeof(*dst_row);
|
||||
src_row += src_stride/sizeof(*src_row);
|
||||
|
||||
Reference in New Issue
Block a user