tests/vkcolorconvert: remove extra instance/device creation
It's unnecessary.
This commit is contained in:
parent
907dc6df68
commit
3c164f4de2
@ -28,25 +28,6 @@
|
|||||||
#include <gst/check/gstharness.h>
|
#include <gst/check/gstharness.h>
|
||||||
#include <gst/vulkan/vulkan.h>
|
#include <gst/vulkan/vulkan.h>
|
||||||
|
|
||||||
static GstVulkanInstance *instance;
|
|
||||||
static GstVulkanDevice *device;
|
|
||||||
|
|
||||||
static void
|
|
||||||
setup (void)
|
|
||||||
{
|
|
||||||
instance = gst_vulkan_instance_new ();
|
|
||||||
fail_unless (gst_vulkan_instance_open (instance, NULL));
|
|
||||||
device = gst_vulkan_device_new (instance);
|
|
||||||
fail_unless (gst_vulkan_device_open (device, NULL));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
teardown (void)
|
|
||||||
{
|
|
||||||
gst_object_unref (instance);
|
|
||||||
gst_object_unref (device);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct _TestFrame
|
typedef struct _TestFrame
|
||||||
{
|
{
|
||||||
gint width;
|
gint width;
|
||||||
@ -139,10 +120,10 @@ vkcolorconvert_suite (void)
|
|||||||
{
|
{
|
||||||
Suite *s = suite_create ("vkcolorconvert");
|
Suite *s = suite_create ("vkcolorconvert");
|
||||||
TCase *tc_basic = tcase_create ("general");
|
TCase *tc_basic = tcase_create ("general");
|
||||||
|
GstVulkanInstance *instance;
|
||||||
gboolean have_instance;
|
gboolean have_instance;
|
||||||
|
|
||||||
suite_add_tcase (s, tc_basic);
|
suite_add_tcase (s, tc_basic);
|
||||||
tcase_add_checked_fixture (tc_basic, setup, teardown);
|
|
||||||
|
|
||||||
/* FIXME: CI doesn't have a software vulkan renderer (and none exists currently) */
|
/* FIXME: CI doesn't have a software vulkan renderer (and none exists currently) */
|
||||||
instance = gst_vulkan_instance_new ();
|
instance = gst_vulkan_instance_new ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user