Mesa (master): radv: only set robust_modes if robustBufferAccess2 is enabled

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 21 20:48:26 UTC 2021


Module: Mesa
Branch: master
Commit: 57603866540e4782451215a10c4401f5c6ee43fe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=57603866540e4782451215a10c4401f5c6ee43fe

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Nov  9 12:57:31 2020 +0000

radv: only set robust_modes if robustBufferAccess2 is enabled

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10384>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index cf62270f242..9f4289c598b 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -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;
          }



More information about the mesa-commit mailing list