radeonsi: return false from si_is_format_supported instead of NULL

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9795>
This commit is contained in:
Marek Olšák 2021-03-16 08:58:54 -04:00 committed by Marge Bot
parent c53261645d
commit 7d14eb623b
1 changed files with 1 additions and 1 deletions

View File

@ -2185,7 +2185,7 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format
if ((target == PIPE_TEXTURE_3D || target == PIPE_TEXTURE_CUBE) &&
!sscreen->info.has_3d_cube_border_color_mipmap)
return NULL;
return false;
if (MAX2(1, sample_count) < MAX2(1, storage_sample_count))
return false;