mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
nvc0: do not invalidate compute constbufs on Kepler
Constbufs are only aliased on Fermi and this will reduce the number of flushes when we switch between 3d and compute. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
5245d845b6
commit
c3c4370299
1 changed files with 6 additions and 4 deletions
|
|
@ -486,10 +486,12 @@ nvc0_constbufs_validate(struct nvc0_context *nvc0)
|
|||
}
|
||||
}
|
||||
|
||||
/* Invalidate all COMPUTE constbufs because they are aliased with 3D. */
|
||||
nvc0->dirty_cp |= NVC0_NEW_CP_CONSTBUF;
|
||||
nvc0->constbuf_dirty[5] |= nvc0->constbuf_valid[5];
|
||||
nvc0->state.uniform_buffer_bound[5] = 0;
|
||||
if (nvc0->screen->base.class_3d < NVE4_3D_CLASS) {
|
||||
/* Invalidate all COMPUTE constbufs because they are aliased with 3D. */
|
||||
nvc0->dirty_cp |= NVC0_NEW_CP_CONSTBUF;
|
||||
nvc0->constbuf_dirty[5] |= nvc0->constbuf_valid[5];
|
||||
nvc0->state.uniform_buffer_bound[5] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue