From: ville.syrjala@linux.intel.com
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 1/2] lib: Add gem_sw_finish()
Date: Mon, 25 Nov 2013 17:08:40 +0200 [thread overview]
Message-ID: <1385392121-28237-1-git-send-email-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <1385062420-19782-2-git-send-email-ville.syrjala@linux.intel.com>
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Wrap DRM_IOCTL_I915_GEM_SW_FINISH into gem_sw_finish()
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
lib/drmtest.c | 10 ++++++++++
lib/drmtest.h | 2 ++
2 files changed, 12 insertions(+)
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 15ed847..6544128 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -632,6 +632,16 @@ uint32_t gem_context_create(int fd)
return create.ctx_id;
}
+void gem_sw_finish(int fd, uint32_t handle)
+{
+ struct drm_i915_gem_sw_finish finish;
+
+ finish.handle = handle;
+
+ do_ioctl(fd, DRM_IOCTL_I915_GEM_SW_FINISH, &finish);
+}
+
+
/* prime */
int prime_handle_to_fd(int fd, uint32_t handle)
{
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 5295a7b..1a243b1 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -85,6 +85,8 @@ int gem_madvise(int fd, uint32_t handle, int state);
uint32_t gem_context_create(int fd);
+void gem_sw_finish(int fd, uint32_t handle);
+
/* feature test helpers */
bool gem_uses_aliasing_ppgtt(int fd);
int gem_available_fences(int fd);
--
1.8.3.2
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2013-11-25 15:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 19:33 [PATCH igt 1/2] rendercopy: Pass context to rendercopy functions ville.syrjala
2013-11-21 19:33 ` [PATCH igt 2/2] kms_fbc_crc: Add a CRC based FBC test ville.syrjala
2013-11-25 9:18 ` Daniel Vetter
2013-11-25 15:08 ` ville.syrjala [this message]
2013-11-25 15:08 ` [PATCH v2 " ville.syrjala
2013-11-25 15:19 ` Daniel Vetter
2013-11-25 16:51 ` [PATCH igt 1/2] lib: Add gem_bo_busy ville.syrjala
2013-11-25 16:51 ` [PATCH igt v3 2/2] kms_fbc_crc: Add a CRC based FBC test ville.syrjala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385392121-28237-1-git-send-email-ville.syrjala@linux.intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox