mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
8408d0312f
commit
5760386654
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue