radv: fix regression in blit2d push constant change.
authorDave Airlie <airlied@redhat.com>
Sun, 7 May 2017 23:54:49 +0000 (00:54 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 7 May 2017 23:54:49 +0000 (00:54 +0100)
These were being fed to the shader as floats via the vertex
path, so also push them as floats here.

This fixes missing overlay in Sascha Willems demos.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_meta_blit2d.c

index 082c1cc8525c4dc5170c15cb1caa08a290300182..ec4e52fd31e673d3caf5d12cb527e2fa6d3bec61 100644 (file)
@@ -272,7 +272,7 @@ radv_meta_blit2d_normal_dst(struct radv_cmd_buffer *cmd_buffer,
                blit2d_bind_dst(cmd_buffer, dst, rects[r].dst_x + rects[r].width,
                                rects[r].dst_y + rects[r].height, depth_format, &dst_temps);
 
-               unsigned vertex_push_constants[4] = {
+               float vertex_push_constants[4] = {
                        rects[r].src_x,
                        rects[r].src_y,
                        rects[r].src_x + rects[r].width,