mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
radv: don't require robust vectorization for nir_var_mem_global
Robust vectorization is to prevent vectorization of loads using the near maximum offset with loads of offset 0. Global loads can't read from offset 0 (NULL) anyways, so this isn't necessary. No fossil-db changes. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14124>
This commit is contained in:
parent
6ca328988f
commit
0360e12ebf
1 changed files with 1 additions and 1 deletions
|
|
@ -4355,7 +4355,7 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
|
|||
|
||||
if (device->robust_buffer_access2) {
|
||||
vectorize_opts.robust_modes =
|
||||
nir_var_mem_ubo | nir_var_mem_ssbo | nir_var_mem_global | nir_var_mem_push_const;
|
||||
nir_var_mem_ubo | nir_var_mem_ssbo | nir_var_mem_push_const;
|
||||
}
|
||||
|
||||
if (nir_opt_load_store_vectorize(stages[i].nir, &vectorize_opts)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue