mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
radv: do VGT_FLUSH when switching NGG -> legacy on Sienna Cichlid
Ported from RadeonSI.
Cc: 20.2
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7566>
(cherry picked from commit 0790105f2f)
This commit is contained in:
parent
9bd698c5e5
commit
4dfd91217a
1 changed files with 5 additions and 4 deletions
|
|
@ -4241,14 +4241,15 @@ void radv_CmdBindPipeline(
|
|||
/* Prefetch all pipeline shaders at first draw time. */
|
||||
cmd_buffer->state.prefetch_L2_mask |= RADV_PREFETCH_SHADERS;
|
||||
|
||||
if (cmd_buffer->device->physical_device->rad_info.chip_class == GFX10 &&
|
||||
if ((cmd_buffer->device->physical_device->rad_info.chip_class == GFX10 ||
|
||||
cmd_buffer->device->physical_device->rad_info.family == CHIP_SIENNA_CICHLID) &&
|
||||
cmd_buffer->state.emitted_pipeline &&
|
||||
radv_pipeline_has_ngg(cmd_buffer->state.emitted_pipeline) &&
|
||||
!radv_pipeline_has_ngg(cmd_buffer->state.pipeline)) {
|
||||
/* Transitioning from NGG to legacy GS requires
|
||||
* VGT_FLUSH on Navi10-14. VGT_FLUSH is also emitted
|
||||
* at the beginning of IBs when legacy GS ring pointers
|
||||
* are set.
|
||||
* VGT_FLUSH on GFX10 and Sienna Cichlid. VGT_FLUSH
|
||||
* is also emitted at the beginning of IBs when legacy
|
||||
* GS ring pointers are set.
|
||||
*/
|
||||
cmd_buffer->state.flush_bits |= RADV_CMD_FLAG_VGT_FLUSH;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue