Gallium expects this.
Related commit:
6cac9c748e
Co-authored-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22891>
desc->swizzle[3],
};
- if (util_format_has_stencil(desc)) {
- assert(!util_format_has_depth(desc) && "separate stencil always used");
+ if (util_format_is_depth_or_stencil(format)) {
+ assert(!util_format_is_depth_and_stencil(format) &&
+ "separate stencil always used");
- /* Broadcast stencil */
+ /* Broadcast depth and stencil */
format_swizzle[0] = 0;
format_swizzle[1] = 0;
format_swizzle[2] = 0;