diff options
author | Joshua Ashton <joshua@froggi.es> | 2021-10-16 15:31:48 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-18 15:57:46 +0200 |
commit | b62ce3c3c83e2719e5fb02306dafe5f0bf5dd91c (patch) | |
tree | 66d96cc73d1a2703b57a34e36acc40a8720d8c03 /render/vulkan/renderer.c | |
parent | e22a38631924d5a5678c11c86ec0b6c5a84fb0e5 (diff) |
render/vulkan: Use image view swizzles instead of shader hack
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Diffstat (limited to 'render/vulkan/renderer.c')
-rw-r--r-- | render/vulkan/renderer.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 4fae81a8..31ce0b76 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -794,17 +794,6 @@ static bool vulkan_render_subtexture_with_matrix(struct wlr_renderer *wlr_render vert_pcr_data.uv_size[1] = -vert_pcr_data.uv_size[1]; } - // When the texture itself does not have alpha information we want - // to ignore the sampled value and just use the alpha passed here, - // we pass a negative value to communicate that. - // See the texture.frag shader for more details. - const struct wlr_pixel_format_info *format_info = drm_get_pixel_format_info( - texture->format->drm_format); - assert(format_info); - if (!format_info->has_alpha) { - alpha *= -1; - } - vkCmdPushConstants(cb, renderer->pipe_layout, VK_SHADER_STAGE_VERTEX_BIT, 0, sizeof(vert_pcr_data), &vert_pcr_data); vkCmdPushConstants(cb, renderer->pipe_layout, |