Skip to content

Commit 43c7ee3

Browse files
committed
drm/asahi: render: Implement bindless samplers
Signed-off-by: Asahi Lina <[email protected]>
1 parent 9af196b commit 43c7ee3

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
@@ -1002,9 +1002,9 @@ impl super::Queue::ver {
10021002
encoder_id: cmdbuf.encoder_id,
10031003
unk_18: 0x0, // fixed
10041004
unk_mask: unks.frg_unk_mask as u32,
1005-
sampler_array: U64(0),
1006-
sampler_count: 0,
1007-
sampler_max: 0,
1005+
sampler_array: U64(cmdbuf.fragment_sampler_array),
1006+
sampler_count: cmdbuf.fragment_sampler_count,
1007+
sampler_max: cmdbuf.fragment_sampler_max,
10081008
}),
10091009
process_empty_tiles: (cmdbuf.flags
10101010
& uapi::ASAHI_RENDER_PROCESS_EMPTY_TILES as u64
@@ -1455,9 +1455,9 @@ impl super::Queue::ver {
14551455
encoder_id: cmdbuf.encoder_id,
14561456
unk_18: 0x0, // fixed
14571457
unk_mask: unks.vtx_unk_mask as u32,
1458-
sampler_array: U64(0),
1459-
sampler_count: 0,
1460-
sampler_max: 0,
1458+
sampler_array: U64(cmdbuf.vertex_sampler_array),
1459+
sampler_count: cmdbuf.vertex_sampler_count,
1460+
sampler_max: cmdbuf.vertex_sampler_max,
14611461
}),
14621462
unk_55c: 0,
14631463
unk_560: 0,

0 commit comments

Comments
 (0)