radeonsi: set the valid buffer range for bindless image buffers

This was missing.

Cc: mesa-stable

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31651>
(cherry picked from commit 2272db2ac6)
This commit is contained in:
Marek Olšák 2024-10-14 19:40:51 -04:00 committed by Eric Engestrom
parent da09a3e97a
commit 8ada91f65b
2 changed files with 4 additions and 1 deletions

View file

@ -154,7 +154,7 @@
"description": "radeonsi: set the valid buffer range for bindless image buffers",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2751,6 +2751,9 @@ static uint64_t si_create_image_handle(struct pipe_context *ctx, const struct pi
si_resource(view->resource)->image_handle_allocated = true;
if (view->access & PIPE_IMAGE_ACCESS_WRITE && view->resource)
si_mark_image_range_valid(view);
return handle;
}