mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
radeonsi: remove TC L2 cache flush for index buffers on VI
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
6ed8fd3d67
commit
5749676d03
1 changed files with 3 additions and 3 deletions
|
|
@ -813,9 +813,9 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
|
|||
}
|
||||
}
|
||||
|
||||
/* TODO: VI should read index buffers through TC, so this shouldn't be
|
||||
* needed on VI. */
|
||||
if (info->indexed && r600_resource(ib.buffer)->TC_L2_dirty) {
|
||||
/* VI reads index buffers through TC L2. */
|
||||
if (info->indexed && sctx->b.chip_class <= CIK &&
|
||||
r600_resource(ib.buffer)->TC_L2_dirty) {
|
||||
sctx->b.flags |= SI_CONTEXT_INV_TC_L2;
|
||||
r600_resource(ib.buffer)->TC_L2_dirty = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue