mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
nir/intrinsics: Add new Vulkan load/store intrinsics
This commit is contained in:
parent
5eccd0b4b9
commit
24bcc89c8f
1 changed files with 7 additions and 2 deletions
|
|
@ -227,11 +227,14 @@ SYSTEM_VALUE(num_work_groups, 3, 0)
|
||||||
true, 0, 0, indices, flags)
|
true, 0, 0, indices, flags)
|
||||||
|
|
||||||
LOAD(uniform, 0, 2, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
LOAD(uniform, 0, 2, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
LOAD(ubo, 1, 2, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
LOAD(ubo, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
LOAD(input, 0, 1, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
LOAD(input, 0, 1, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
LOAD(per_vertex_input, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
LOAD(per_vertex_input, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
LOAD(ssbo, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE)
|
LOAD(ssbo, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE)
|
||||||
|
|
||||||
|
LOAD(ubo_vk, 1, 3, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
|
LOAD(ssbo_vk, 1, 3, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Stores work the same way as loads, except now the first register input is
|
* Stores work the same way as loads, except now the first register input is
|
||||||
* the value or array to store and the optional second input is the indirect
|
* the value or array to store and the optional second input is the indirect
|
||||||
|
|
@ -250,4 +253,6 @@ LOAD(ssbo, 1, 1, NIR_INTRINSIC_CAN_ELIMINATE)
|
||||||
STORE(output, 0, 0, 0, 0)
|
STORE(output, 0, 0, 0, 0)
|
||||||
STORE(ssbo, 1, 1, 1, 0)
|
STORE(ssbo, 1, 1, 1, 0)
|
||||||
|
|
||||||
LAST_INTRINSIC(store_ssbo_indirect)
|
STORE(ssbo_vk, 1, 1, 3, 0)
|
||||||
|
|
||||||
|
LAST_INTRINSIC(store_ssbo_vk_indirect)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue