turnip: Get has_sample_locations from fd_dev_info

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>
This commit is contained in:
Rob Clark 2021-07-08 09:44:45 -07:00 committed by Marge Bot
parent 3f1c4a86bb
commit f74d0bf05e
3 changed files with 4 additions and 1 deletions

View 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;

View 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([

View 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,