nir: Add access qualifiers on load_ubo intrinsic.
Otherwise nir_lower_non_uniform_access crashes when it tries to get the access of a load_ubo. Fixes:8ed583fe52
"spirv: Handle the NonUniformEXT decoration" Fixes:e50ab2c0f2
"nir: Add access flags to deref and SSBO atomics" Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -618,7 +618,7 @@ def load(name, num_srcs, indices=[], flags=[]):
|
||||
# src[] = { offset }. const_index[] = { base, range }
|
||||
load("uniform", 1, [BASE, RANGE], [CAN_ELIMINATE, CAN_REORDER])
|
||||
# src[] = { buffer_index, offset }. const_index[] = { align_mul, align_offset }
|
||||
load("ubo", 2, [ALIGN_MUL, ALIGN_OFFSET], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
load("ubo", 2, [ACCESS, ALIGN_MUL, ALIGN_OFFSET], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
# src[] = { offset }. const_index[] = { base, component }
|
||||
load("input", 1, [BASE, COMPONENT], [CAN_ELIMINATE, CAN_REORDER])
|
||||
# src[] = { vertex, offset }. const_index[] = { base, component }
|
||||
|
Reference in New Issue
Block a user