Skip to content

Commit 07a1cb6

Browse files
committed
drm/asahi: render: Implement bindless samplers
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 960c15f commit 07a1cb6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/gpu/drm/asahi/queue/render.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ impl super::Queue::ver {
999999
encoder_id: cmdbuf.encoder_id,
10001000
unk_18: 0x0, // fixed
10011001
unk_mask: unks.frg_unk_mask as u32,
1002-
sampler_array: U64(0),
1003-
sampler_count: 0,
1004-
sampler_max: 0,
1002+
sampler_array: U64(cmdbuf.fragment_sampler_array),
1003+
sampler_count: cmdbuf.fragment_sampler_count,
1004+
sampler_max: cmdbuf.fragment_sampler_max,
10051005
}),
10061006
process_empty_tiles: (cmdbuf.flags
10071007
& uapi::ASAHI_RENDER_PROCESS_EMPTY_TILES as u64
@@ -1452,9 +1452,9 @@ impl super::Queue::ver {
14521452
encoder_id: cmdbuf.encoder_id,
14531453
unk_18: 0x0, // fixed
14541454
unk_mask: unks.vtx_unk_mask as u32,
1455-
sampler_array: U64(0),
1456-
sampler_count: 0,
1457-
sampler_max: 0,
1455+
sampler_array: U64(cmdbuf.vertex_sampler_array),
1456+
sampler_count: cmdbuf.vertex_sampler_count,
1457+
sampler_max: cmdbuf.vertex_sampler_max,
14581458
}),
14591459
unk_55c: 0,
14601460
unk_560: 0,

0 commit comments

Comments
 (0)