mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
amd/addrlib: fix 3D texture allocation failures on gfx11
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17864>
This commit is contained in:
parent
2208ff7a5b
commit
2c25dd0f27
1 changed files with 2 additions and 2 deletions
|
|
@ -2815,7 +2815,7 @@ ADDR_E_RETURNCODE Gfx11Lib::HwlGetPreferredSurfaceSetting(
|
|||
}
|
||||
else if (pIn->resourceType == ADDR_RSRC_TEX_3D)
|
||||
{
|
||||
if (pIn->flags.color && allowedSwSet.sw_R)
|
||||
if (allowedSwSet.sw_D)
|
||||
{
|
||||
allowedSwModeSet.value &= Gfx11DisplaySwModeMask;
|
||||
}
|
||||
|
|
@ -2823,7 +2823,7 @@ ADDR_E_RETURNCODE Gfx11Lib::HwlGetPreferredSurfaceSetting(
|
|||
{
|
||||
allowedSwModeSet.value &= Gfx11StandardSwModeMask;
|
||||
}
|
||||
else if (allowedSwSet.sw_D)
|
||||
else if (allowedSwSet.sw_R)
|
||||
{
|
||||
allowedSwModeSet.value &= Gfx11RenderSwModeMask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue