mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
r600g: Invalidate texture cache when creating vertex buffers for compute v2
Compute shaders fetch data from vertex buffers via the texture cache, so we need to make sure the texture cache is flushed. v2: - Fix rebase mistake - Fix spelling in comment Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
810345492e
commit
69b387fbdc
1 changed files with 3 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ static void evergreen_cs_set_vertex_buffer(
|
|||
vb->buffer = buffer;
|
||||
vb->user_buffer = NULL;
|
||||
|
||||
rctx->flags |= rctx->has_vertex_cache ? R600_CONTEXT_VTX_FLUSH : R600_CONTEXT_TEX_FLUSH;
|
||||
/* The vertex instructions in the compute shaders use the texture cache,
|
||||
* so we need to invalidate it. */
|
||||
rctx->flags |= R600_CONTEXT_TEX_FLUSH;
|
||||
state->enabled_mask |= 1 << vb_index;
|
||||
state->dirty_mask |= 1 << vb_index;
|
||||
r600_atom_dirty(rctx, &state->atom);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue