turnip: Get has_sample_locations from fd_dev_info
authorRob Clark <robdclark@chromium.org>
Thu, 8 Jul 2021 16:44:45 +0000 (09:44 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Jul 2021 01:58:00 +0000 (01:58 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>

src/freedreno/common/freedreno_dev_info.h
src/freedreno/common/freedreno_devices.py
src/freedreno/vulkan/tu_device.c

index 88680f9..b4e4cf7 100644 (file)
@@ -87,6 +87,8 @@ struct fd_dev_info {
 
          bool has_tex_filter_cubic;
 
+         bool has_sample_locations;
+
          struct {
             uint32_t RB_UNKNOWN_8E04_blit;
             uint32_t PC_UNKNOWN_9805;
index afe2f8e..7e8bd6d 100644 (file)
@@ -197,6 +197,7 @@ a6xx_gen3 = dict(
         tess_use_shared = True,
         storage_16bit = True,
         has_tex_filter_cubic = True,
+        has_sample_locations = True,
     )
 
 add_gpus([
index 09eecff..7651ca0 100644 (file)
@@ -157,7 +157,7 @@ get_device_extensions(const struct tu_physical_device *device,
 #endif
       .EXT_external_memory_dma_buf = true,
       .EXT_image_drm_format_modifier = true,
-      .EXT_sample_locations = device->gpu_id == 650,
+      .EXT_sample_locations = device->info->a6xx.has_sample_locations,
       .EXT_sampler_filter_minmax = true,
       .EXT_transform_feedback = true,
       .EXT_4444_formats = true,