radv: only set robust_modes if robustBufferAccess2 is enabled

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10384>
This commit is contained in:
Rhys Perry 2020-11-09 12:57:31 +00:00 committed by Marge Bot
parent 8408d0312f
commit 5760386654
1 changed files with 1 additions and 1 deletions

View File

@ -3301,7 +3301,7 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_device *device,
.robust_modes = 0,
};
if (device->robust_buffer_access) {
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;
}