radeonsi: don't report that multi-plane formats are supported
authorMarek Olšák <marek.olsak@amd.com>
Wed, 29 Jan 2020 22:25:45 +0000 (17:25 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 8 Feb 2020 01:42:42 +0000 (20:42 -0500)
Fixes: a554b45d - st/mesa: don't lower YUV when driver supports it natively
Closes: #2376
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3632>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3632>

src/gallium/drivers/radeonsi/si_state.c

index 86c2daff0de32bc802734693c1461ee72884db62..afa1029c1ac9b0ebb943ad82e2a562d56986d851 100644 (file)
@@ -2242,13 +2242,6 @@ static bool si_is_format_supported(struct pipe_screen *screen,
                return false;
        }
 
-       if (util_format_get_num_planes(format) >= 2) {
-               return util_format_planar_is_supported(screen, format, target,
-                                                      sample_count,
-                                                      storage_sample_count,
-                                                      usage);
-       }
-
        if (MAX2(1, sample_count) < MAX2(1, storage_sample_count))
                return false;