mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
radv: set fmask_surf_index on fmask surfaces.
This is needed for gfx9 and later for all fmask surface index. (Mentioned by Marek on irc) Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
f298ed93d9
commit
e66f64c285
1 changed files with 3 additions and 1 deletions
|
|
@ -742,8 +742,10 @@ radv_image_get_fmask_info(struct radv_device *device,
|
|||
info.samples = 1;
|
||||
fmask.flags = image->surface.flags | RADEON_SURF_FMASK;
|
||||
|
||||
if (!image->shareable)
|
||||
if (!image->shareable) {
|
||||
info.fmask_surf_index = &device->fmask_mrt_offset_counter;
|
||||
info.surf_index = &device->fmask_mrt_offset_counter;
|
||||
}
|
||||
|
||||
/* Force 2D tiling if it wasn't set. This may occur when creating
|
||||
* FMASK for MSAA resolve on R6xx. On R6xx, the single-sample
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue