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>
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)) {