mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
gallium/radeon: use the current ctx for DCC decompression in resource_get_handle
For coherency with the current context. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
0d2e43fcb1
commit
d22feeaa9d
1 changed files with 3 additions and 3 deletions
|
|
@ -518,8 +518,8 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
|
|||
unsigned usage)
|
||||
{
|
||||
struct r600_common_screen *rscreen = (struct r600_common_screen*)screen;
|
||||
struct r600_common_context *aux_context =
|
||||
(struct r600_common_context*)rscreen->aux_context;
|
||||
struct r600_common_context *rctx = (struct r600_common_context*)
|
||||
(ctx ? ctx : rscreen->aux_context);
|
||||
struct r600_resource *res = (struct r600_resource*)resource;
|
||||
struct r600_texture *rtex = (struct r600_texture*)resource;
|
||||
struct radeon_bo_metadata metadata;
|
||||
|
|
@ -538,7 +538,7 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
|
|||
* access.
|
||||
*/
|
||||
if (usage & PIPE_HANDLE_USAGE_WRITE && rtex->dcc_offset) {
|
||||
if (r600_texture_disable_dcc(aux_context, rtex))
|
||||
if (r600_texture_disable_dcc(rctx, rtex))
|
||||
update_metadata = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue