mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
winsys/amdgpu: don't set ac_surf_info::surf_index = NULL
ac_surface.c already checks RADEON_SURF_Z_OR_SBUFFER. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38093>
This commit is contained in:
parent
55d222c47b
commit
482cc60345
1 changed files with 0 additions and 3 deletions
|
|
@ -84,9 +84,6 @@ static int amdgpu_surface_init(struct radeon_winsys *rws,
|
|||
config.info.surf_index = &aws->surf_index_color;
|
||||
config.info.fmask_surf_index = &aws->surf_index_fmask;
|
||||
|
||||
if (flags & RADEON_SURF_Z_OR_SBUFFER)
|
||||
config.info.surf_index = NULL;
|
||||
|
||||
/* Use radeon_info from the driver, not the winsys. The driver is allowed to change it. */
|
||||
return ac_compute_surface(aws->addrlib, info, &config, mode, surf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue