mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
radv/winsys: fix hash when adding internal buffers
This fixes serious stuttering in Shadow Of The Tomb Raider. Fixes:50fd253bd6("radv/winsys: Add priority handling during submit.") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit9c762c01c8)
This commit is contained in:
parent
4d1dd3b0cd
commit
31d0079a20
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ static void radv_amdgpu_cs_add_buffer_internal(struct radv_amdgpu_cs *cs,
|
|||
cs->handles[cs->num_buffers].bo_handle = bo;
|
||||
cs->handles[cs->num_buffers].bo_priority = priority;
|
||||
|
||||
hash = ((uintptr_t)bo >> 6) & (ARRAY_SIZE(cs->buffer_hash_table) - 1);
|
||||
hash = bo & (ARRAY_SIZE(cs->buffer_hash_table) - 1);
|
||||
cs->buffer_hash_table[hash] = cs->num_buffers;
|
||||
|
||||
++cs->num_buffers;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue