zink: convert luminance/alpha clear colors in dynamic texture clear

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22025>
This commit is contained in:
Mike Blumenkrantz
2023-03-20 09:00:16 -04:00
committed by Marge Bot
parent 600b8ba75c
commit efa6387a09
2 changed files with 1 additions and 2 deletions
@@ -262,6 +262,4 @@ spec@glsl-4.50@execution@ssbo-atomiccompswap-int,Fail
# New CTS failures in 1.3.5.0
KHR-GL46.polygon_offset_clamp.PolygonOffsetClampMinMax,Fail
KHR-GL46.polygon_offset_clamp.PolygonOffsetClampZeroInfinity,Fail
fast_color_clear@fcc-clear-tex,Fail
spec@arb_clear_texture@arb_clear_texture-base-formats,Fail
spec@arb_texture_cube_map_array@texsubimage cube_map_array,Fail
+1
View File
@@ -490,6 +490,7 @@ zink_clear_texture_dynamic(struct pipe_context *pctx,
uint8_t stencil = 0;
if (res->aspect & VK_IMAGE_ASPECT_COLOR_BIT) {
util_format_unpack_rgba(pres->format, color.ui, data, 1);
convert_color(surf, &color);
} else {
if (res->aspect & VK_IMAGE_ASPECT_DEPTH_BIT)
util_format_unpack_z_float(pres->format, &depth, data, 1);