diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2017-12-29 01:57:47 +0300 |
---|---|---|
committer | Dmitry Osipenko <digetx@gmail.com> | 2017-12-29 01:57:47 +0300 |
commit | 7ca407fc92e79a8ffce0409a1ed16316d6cbd69d (patch) | |
tree | 1ee5bcf6379060be5d3bdf78db4e717e52f37c68 | |
parent | 85b07920117fce57cc4bf86ddd7861775cf222eb (diff) |
Remove idle_hack
It is not relevant anymore.
-rw-r--r-- | src/presentation_queue.c | 5 | ||||
-rw-r--r-- | src/vdpau_tegra.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/presentation_queue.c b/src/presentation_queue.c index 1f9d6e6..46f56df 100644 --- a/src/presentation_queue.c +++ b/src/presentation_queue.c @@ -407,11 +407,9 @@ VdpStatus vdp_presentation_queue_display( ref_surface(surf); surf->disp_width = clip_width ?: surf->width; surf->disp_height = clip_height ?: surf->height; - surf->idle_hack = false; if (earliest_presentation_time == 0) { pqt_display_surface(pqt, surf); - surf->idle_hack = true; pthread_mutex_unlock(&surf->lock); pthread_mutex_unlock(&pq->lock); @@ -456,8 +454,7 @@ VdpStatus vdp_presentation_queue_block_until_surface_idle( pthread_mutex_lock(&surf->lock); - if (surf->idle_hack || - surf->status == VDP_PRESENTATION_QUEUE_STATUS_IDLE) { + if (surf->status == VDP_PRESENTATION_QUEUE_STATUS_IDLE) { *first_presentation_time = surf->first_presentation_time; ret = VDP_STATUS_OK; goto unlock; diff --git a/src/vdpau_tegra.h b/src/vdpau_tegra.h index af95802..114f513 100644 --- a/src/vdpau_tegra.h +++ b/src/vdpau_tegra.h @@ -175,8 +175,6 @@ typedef struct tegra_surface { pthread_cond_t idle_cond; pthread_mutex_t lock; - bool idle_hack; - uint32_t surface_id; tegra_shared_surface *shared; |