Mesa (staging/20.1): radv: add new drirc option radv_no_dynamic_bounds

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 17:34:49 UTC 2020


Module: Mesa
Branch: staging/20.1
Commit: 631adc3de7bc05379794d5748f7c512730a4e413
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=631adc3de7bc05379794d5748f7c512730a4e413

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Fri Jun 19 23:59:49 2020 +0100

radv: add new drirc option radv_no_dynamic_bounds

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Cc: <mesa-stable at lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5569>
(cherry picked from commit f4a643f65e36fc8bd80aa5fe7ea60d78a546f756)

---

 .pick_status.json            | 2 +-
 src/amd/vulkan/radv_device.c | 4 ++++
 src/util/xmlpool/t_options.h | 9 +++++++++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 4d672e0a3d3..9299cb8077f 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -571,7 +571,7 @@
         "description": "radv: add new drirc option radv_no_dynamic_bounds",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": null
     },
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index a60a2c0590d..9cfcbe6c23b 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -556,6 +556,9 @@ radv_handle_per_app_options(struct radv_instance *instance,
 			instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
 		}
 	}
+
+	if (driQueryOptionb(&instance->dri_options, "radv_no_dynamic_bounds"))
+		instance->debug_flags |= RADV_DEBUG_NO_DYNAMIC_BOUNDS;
 }
 
 static int radv_get_instance_extension_index(const char *name)
@@ -573,6 +576,7 @@ DRI_CONF_BEGIN
 		DRI_CONF_ADAPTIVE_SYNC("true")
 		DRI_CONF_VK_X11_OVERRIDE_MIN_IMAGE_COUNT(0)
 		DRI_CONF_VK_X11_STRICT_IMAGE_COUNT("false")
+		DRI_CONF_RADV_NO_DYNAMIC_BOUNDS("false")
 	DRI_CONF_SECTION_END
 
 	DRI_CONF_SECTION_DEBUG
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index 0dbac8e0479..3a5eab044af 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -421,3 +421,12 @@ DRI_CONF_OPT_END
 DRI_CONF_OPT_BEGIN_V(gles_samples_passed_value, def, minimum, maximum) \
         DRI_CONF_DESC(en,gettext("GL_SAMPLES_PASSED value when emulated by GL_ANY_SAMPLES_PASSED")) \
 DRI_CONF_OPT_END
+
+/**
+ * \brief RADV specific configuration options
+ */
+
+#define DRI_CONF_RADV_NO_DYNAMIC_BOUNDS(def) \
+DRI_CONF_OPT_BEGIN_B(radv_no_dynamic_bounds, def) \
+        DRI_CONF_DESC(en,gettext("Disabling bounds checking for dynamic buffer descriptors")) \
+DRI_CONF_OPT_END



More information about the mesa-commit mailing list