Skip to content

Commit 65bea1c

Browse files
lynxeye-devgregkh
authored andcommitted
drm/etnaviv: flush shader L1 cache after user commandstream
commit 4f8dbad upstream. The shader L1 cache is a writeback cache for shader loads/stores and thus must be flushed before any BOs backing the shader buffers are potentially freed. Cc: [email protected] Reviewed-by: Christian Gmeiner <[email protected]> Signed-off-by: Lucas Stach <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a3d970f commit 65bea1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/etnaviv/etnaviv_buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ void etnaviv_buffer_queue(struct etnaviv_gpu *gpu, u32 exec_state,
482482
} else {
483483
CMD_LOAD_STATE(buffer, VIVS_GL_FLUSH_CACHE,
484484
VIVS_GL_FLUSH_CACHE_DEPTH |
485-
VIVS_GL_FLUSH_CACHE_COLOR);
485+
VIVS_GL_FLUSH_CACHE_COLOR |
486+
VIVS_GL_FLUSH_CACHE_SHADER_L1);
486487
if (has_blt) {
487488
CMD_LOAD_STATE(buffer, VIVS_BLT_ENABLE, 0x1);
488489
CMD_LOAD_STATE(buffer, VIVS_BLT_SET_COMMAND, 0x1);

0 commit comments

Comments
 (0)