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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user