mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
radv: fix prefetching of vertex shader and VBOs on SI
Forgot one check... Too many mistakes for a simple change.
Fixes: f1d7c16e85 ("radv: fix prefetching compute shaders on CIK and older chips")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
56a4d03b0c
commit
04e609f1f8
1 changed files with 1 additions and 1 deletions
|
|
@ -3083,7 +3083,7 @@ radv_draw(struct radv_cmd_buffer *cmd_buffer,
|
|||
*/
|
||||
si_emit_cache_flush(cmd_buffer);
|
||||
|
||||
if (cmd_buffer->state.prefetch_L2_mask) {
|
||||
if (has_prefetch && cmd_buffer->state.prefetch_L2_mask) {
|
||||
/* Only prefetch the vertex shader and VBO descriptors
|
||||
* in order to start the draw as soon as possible.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue