mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nvk: Ensure that shader I-cache prefetch is enabled on Ada+
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/40700>
This commit is contained in:
parent
55a279e8b8
commit
5a5febfccd
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
||||||
#include "nv_push_clcb97.h"
|
#include "nv_push_clcb97.h"
|
||||||
#include "nv_push_clcd97.h"
|
#include "nv_push_clcd97.h"
|
||||||
#include "clc7c0.h"
|
#include "clc7c0.h"
|
||||||
|
#include "clc997.h"
|
||||||
#include "clcb97.h"
|
#include "clcb97.h"
|
||||||
#include "clcd97.h"
|
#include "clcd97.h"
|
||||||
#include "drf.h"
|
#include "drf.h"
|
||||||
|
|
@ -315,6 +316,7 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
||||||
P_NV9097_SET_REDUCE_COLOR_THRESHOLDS_SRGB8(p, {
|
P_NV9097_SET_REDUCE_COLOR_THRESHOLDS_SRGB8(p, {
|
||||||
.all_covered_all_hit_once = 0xff,
|
.all_covered_all_hit_once = 0xff,
|
||||||
});
|
});
|
||||||
|
P_IMMD(p, NV9097, SET_SHADER_CACHE_CONTROL, pdev->info.cls_eng3d >= ADA_A);
|
||||||
|
|
||||||
if (pdev->info.cls_eng3d < VOLTA_A)
|
if (pdev->info.cls_eng3d < VOLTA_A)
|
||||||
P_IMMD(p, NV9097, SET_ALPHA_FRACTION, 0x3f);
|
P_IMMD(p, NV9097, SET_ALPHA_FRACTION, 0x3f);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue