Mesa (master): anv: Advertise support for MinLod on Skylake+

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 12 03:26:49 UTC 2018


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Oct  2 22:04:09 2018 -0500

anv: Advertise support for MinLod on Skylake+

These are usually used for dealing with sparse resources but there's no
reason why we can't hook them up before we have sparse.  We have the
hardware; let's light it up.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/intel/vulkan/anv_device.c   | 2 +-
 src/intel/vulkan/anv_pipeline.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 6b5ba25c6b..bc4dba888f 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -865,7 +865,7 @@ void anv_GetPhysicalDeviceFeatures(
       .shaderInt64                              = pdevice->info.gen >= 8 &&
                                                   pdevice->info.has_64bit_types,
       .shaderInt16                              = pdevice->info.gen >= 8,
-      .shaderResourceMinLod                     = false,
+      .shaderResourceMinLod                     = pdevice->info.gen >= 9,
       .variableMultisampleRate                  = true,
       .inheritedQueries                         = true,
    };
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index ee37685fcc..6db9945e0d 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -142,6 +142,7 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline,
          .device_group = true,
          .draw_parameters = true,
          .image_write_without_format = true,
+         .min_lod = true,
          .multiview = true,
          .variable_pointers = true,
          .storage_16bit = device->instance->physicalDevice.info.gen >= 8,




More information about the mesa-commit mailing list