anv: Advertise support for MinLod on Skylake+
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Oct 2018 03:04:09 +0000 (22:04 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Dec 2018 03:26:23 +0000 (21:26 -0600)
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@intel.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c

index 6b5ba25c6bcbf1175eed3ed8a77c37f72747824c..bc4dba888fb402fa1ea37ded73c98a08a0bf3266 100644 (file)
@@ -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,
    };
index ee37685fccff50dc4dee96b7520156a217dbd30f..6db9945e0d4b094692ed82cea0907d2bb9990556 100644 (file)
@@ -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,