Mesa (master): iris: Enable EXT_depth_bounds_test extension.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 15:38:51 UTC 2020


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

Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date:   Mon Apr 13 22:35:50 2020 +0000

iris: Enable EXT_depth_bounds_test extension.

It was implemented in 1df871f8ff753dd234def380ea0e20d7e81cad9e, but to
really enable it we need to enable PIPE_CAP_DEPTH_BOUNDS_TEST.

v2: Add release notes (Ian).

Suggested-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4540>

---

 docs/relnotes/new_features.txt         | 1 +
 src/gallium/drivers/iris/iris_screen.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index 41631399737..b3346d18fd4 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -2,3 +2,4 @@ GL_ARB_compute_variable_group_size on i965.
 GL_EXT_texture_shadow_lod on radeonsi.
 GL_NV_copy_image on all gallium drivers.
 VK_KHR_shader_non_semantic_info on Intel, RADV.
+GL_EXT_depth_bounds_test on Iris.
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 0c99e3702e2..b93845794b2 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -211,6 +211,8 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_FRAGMENT_SHADER_INTERLOCK:
    case PIPE_CAP_ATOMIC_FLOAT_MINMAX:
       return devinfo->gen >= 9;
+   case PIPE_CAP_DEPTH_BOUNDS_TEST:
+      return devinfo->gen >= 12;
    case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
       return 1;
    case PIPE_CAP_MAX_RENDER_TARGETS:



More information about the mesa-commit mailing list