From: Jason Ekstrand Date: Tue, 7 Jul 2015 23:27:06 +0000 (-0700) Subject: meta: Use the VkClearColorValue structure for the color attribute X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e4b00d283a7fb9059753a1b267efa723e8e70ad;p=mesa.git meta: Use the VkClearColorValue structure for the color attribute --- diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c index 9bba3540a37..57e0ec5093a 100644 --- a/src/vulkan/meta.c +++ b/src/vulkan/meta.c @@ -189,7 +189,7 @@ struct vue_header { struct clear_instance_data { struct vue_header vue_header; - float color[4]; + VkClearColorValue color; }; static void @@ -283,12 +283,7 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer, .ViewportIndex = 0, .PointWidth = 0.0 }, - .color = { - pass->layers[i].clear_color.color.floatColor[0], - pass->layers[i].clear_color.color.floatColor[1], - pass->layers[i].clear_color.color.floatColor[2], - pass->layers[i].clear_color.color.floatColor[3], - } + .color = pass->layers[i].clear_color.color, }; } } @@ -1262,12 +1257,7 @@ void anv_CmdClearColorImage( .ViewportIndex = 0, .PointWidth = 0.0 }, - .color = { - color.color.floatColor[0], - color.color.floatColor[1], - color.color.floatColor[2], - color.color.floatColor[3], - } + .color = color.color, }; meta_emit_clear(cmd_buffer, 1, &instance_data);