asahi: Fix is_format_supported returns

Gallium can test multiple binds at once, we need to return the logical
AND, not the OR.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18167>
This commit is contained in:
Alyssa Rosenzweig 2022-08-18 22:35:58 -04:00 committed by Marge Bot
parent b37b8eabd3
commit 1044cfa49b

View file

@ -1036,7 +1036,7 @@ agx_is_format_supported(struct pipe_screen* pscreen,
case PIPE_FORMAT_R32G32_FLOAT:
case PIPE_FORMAT_R32G32B32_FLOAT:
case PIPE_FORMAT_R32G32B32A32_FLOAT:
return true;
break;
default:
return false;
}
@ -1053,14 +1053,13 @@ agx_is_format_supported(struct pipe_screen* pscreen,
case PIPE_FORMAT_Z24X8_UNORM:
case PIPE_FORMAT_Z24_UNORM_S8_UINT:
case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
return true;
break;
default:
return false;
}
}
/* TODO */
return true;
}