diff options
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_formats.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_formats.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_formats.c b/src/gallium/drivers/v3d/v3d_formats.c index bdb86935f65..5bd8db0dbd4 100644 --- a/src/gallium/drivers/v3d/v3d_formats.c +++ b/src/gallium/drivers/v3d/v3d_formats.c @@ -142,3 +142,14 @@ v3d_get_internal_type_bpp_for_output_format(const struct v3d_device_info *devinf type, bpp); } } + +bool +v3d_tfu_supports_tex_format(const struct v3d_device_info *devinfo, + uint32_t tex_format) +{ + if (devinfo->ver >= 41) { + return v3d41_tfu_supports_tex_format(tex_format); + } else { + return v3d33_tfu_supports_tex_format(tex_format); + } +} |