radeonsi: set size in si_texture_get_handle

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6507
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6491
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16813>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2022-06-01 10:48:58 +02:00
parent bce227611d
commit b81f05e94d

View File

@@ -691,6 +691,8 @@ static bool si_texture_get_handle(struct pipe_screen *screen, struct pipe_contex
if (resource->nr_samples > 1 || tex->is_depth)
return false;
whandle->size = tex->buffer.bo_size;
if (plane) {
whandle->offset = ac_surface_get_plane_offset(sscreen->info.gfx_level,
&tex->surface, plane, 0);