[gtk+/wip/gbsneto/vulkan-wayland: 3/3] vulkanpushconstants: Don't report invalid ranges
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gbsneto/vulkan-wayland: 3/3] vulkanpushconstants: Don't report invalid ranges
- Date: Wed, 4 Jan 2017 17:39:23 +0000 (UTC)
commit 60ac6f0f5e4a7caf3470b3804da654922fe55b4f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 4 15:37:02 2017 -0200
vulkanpushconstants: Don't report invalid ranges
Vulkan doesn't accept empty ranges, so simply don't report
them.
gsk/gskvulkanpushconstants.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskvulkanpushconstants.c b/gsk/gskvulkanpushconstants.c
index f7daf1a..34574c2 100644
--- a/gsk/gskvulkanpushconstants.c
+++ b/gsk/gskvulkanpushconstants.c
@@ -101,13 +101,13 @@ gsk_vulkan_push_constants_push_fragment (GskVulkanPushConstants *self,
uint32_t
gst_vulkan_push_constants_get_range_count (void)
{
- return 2;
+ return 1;
}
const VkPushConstantRange *
gst_vulkan_push_constants_get_ranges (void)
{
- static const VkPushConstantRange ranges[2] = {
+ static const VkPushConstantRange ranges[1] = {
{
.stageFlags = VK_SHADER_STAGE_VERTEX_BIT,
.offset = G_STRUCT_OFFSET (GskVulkanPushConstantsWire, vertex),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]