mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
winsys/amdgpu: remove RADEON_SURF_FMASK leftover
RADEON_SURF_FMASK is never set.
This commit is contained in:
parent
9b82d128c9
commit
565dacc3d6
1 changed files with 4 additions and 7 deletions
|
|
@ -96,15 +96,12 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
|
|||
* always use consecutive surface indices when FMASK is allocated between
|
||||
* them.
|
||||
*/
|
||||
if (flags & RADEON_SURF_FMASK)
|
||||
config.info.surf_index = &ws->surf_index_fmask;
|
||||
else if (!(flags & RADEON_SURF_Z_OR_SBUFFER))
|
||||
config.info.surf_index = &ws->surf_index_color;
|
||||
else
|
||||
config.info.surf_index = NULL;
|
||||
|
||||
config.info.surf_index = &ws->surf_index_color;
|
||||
config.info.fmask_surf_index = &ws->surf_index_fmask;
|
||||
|
||||
if (flags & RADEON_SURF_Z_OR_SBUFFER)
|
||||
config.info.surf_index = NULL;
|
||||
|
||||
return ac_compute_surface(ws->addrlib, &ws->info, &config, mode, surf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue