mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
vk/meta: Add Z coord to clear vertices
For now, the Z coordinate is always 0.0. Will later be used for depth clears.
This commit is contained in:
parent
4aef5c62cd
commit
44ef4484c8
1 changed files with 6 additions and 6 deletions
|
|
@ -65,7 +65,7 @@ anv_device_init_meta_clear_state(struct anv_device *device)
|
|||
.pVertexBindingDescriptions = (VkVertexInputBindingDescription[]) {
|
||||
{
|
||||
.binding = 0,
|
||||
.strideInBytes = 8,
|
||||
.strideInBytes = 12,
|
||||
.stepRate = VK_VERTEX_INPUT_STEP_RATE_VERTEX
|
||||
},
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ anv_device_init_meta_clear_state(struct anv_device *device)
|
|||
/* Position */
|
||||
.location = 1,
|
||||
.binding = 0,
|
||||
.format = VK_FORMAT_R32G32_SFLOAT,
|
||||
.format = VK_FORMAT_R32G32B32_SFLOAT,
|
||||
.offsetInBytes = 0
|
||||
},
|
||||
{
|
||||
|
|
@ -207,12 +207,12 @@ meta_emit_clear(struct anv_cmd_buffer *cmd_buffer,
|
|||
|
||||
const float vertex_data[] = {
|
||||
/* Rect-list coordinates */
|
||||
0.0, 0.0,
|
||||
fb->width, 0.0,
|
||||
fb->width, fb->height,
|
||||
0.0, 0.0, 0.0,
|
||||
fb->width, 0.0, 0.0,
|
||||
fb->width, fb->height, 0.0,
|
||||
|
||||
/* Align to 16 bytes */
|
||||
0.0, 0.0,
|
||||
0.0, 0.0, 0.0,
|
||||
};
|
||||
|
||||
size = sizeof(vertex_data) + num_instances * sizeof(*instance_data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue