mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
nvk: Set VAF eviction policy to nornmal
NVIDIA proprietary driver does that, we were missing this and possibly making the VAF (Vertex Attribute Fetch) unit evict the first entry instead if nothing was setting it. The golden ctx already set it for us at least on Ada but for consistency let's make sure it's set here in case this is different on other generations. Signed-off-by: Mary Guillemard <mary@mary.zone> Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Tested-by: Thomas H.P. Andersen <phomes@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40753>
This commit is contained in:
parent
90c005dd90
commit
99c226b833
1 changed files with 4 additions and 0 deletions
|
|
@ -330,6 +330,10 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
|||
if (pdev->info.cls_eng3d < MAXWELL_A)
|
||||
P_IMMD(p, NV9097, SET_SHADER_SCHEDULING, MODE_OLDEST_THREAD_FIRST);
|
||||
|
||||
P_IMMD(p, NV9097, SET_L2_CACHE_CONTROL_FOR_VAF_REQUESTS, {
|
||||
.system_memory_volatile = false,
|
||||
.policy = POLICY_EVICT_NORMAL,
|
||||
});
|
||||
P_IMMD(p, NV9097, SET_L2_CACHE_CONTROL_FOR_ROP_PREFETCH_READ_REQUESTS,
|
||||
POLICY_EVICT_NORMAL);
|
||||
P_IMMD(p, NV9097, SET_L2_CACHE_CONTROL_FOR_ROP_NONINTERLOCKED_READ_REQUESTS,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue