st/mesa: account for "loose", per-mipmap level textures in CopyImageSubData
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Fri, 12 Jun 2020 13:04:44 +0000 (16:04 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 11:44:14 +0000 (11:44 +0000)
commit8ce8895b69a7523513eceed096233c3a348880a7
tree95fbb460a4dc06f08b2fef54e272b3809c9beec4
parent9760a7ed9138b84d83a712afeb0e673399d9e200
st/mesa: account for "loose", per-mipmap level textures in CopyImageSubData

We may have "loose", per-image gallium resources. The src_image->Level
may not match the gallium resource texture level. In such case it is
prescribed (in st_AllocTextureImageBuffer) to specify mipmap level
as zero.

Fixes: f04f13622f3e71bee057d60a6be9c53b92b56cc9
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5477>
src/mesa/state_tracker/st_cb_copyimage.c