summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-26 09:05:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-26 09:05:48 +0000
commita5be4210b7e8b4a895a70ba617fda45d2e0188f0 (patch)
treeb3e7d58e234ec31a1cbd9ba0df7e2ac83ed43b11
parent761ab4124e00b3dbab15abe69a9b29d9c3d0da0d (diff)
sna: Trim removed fields from execbuffer2 for OpenBSD support
Reported-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index e0d864da..c6ed1143 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -2622,18 +2622,11 @@ void _kgem_submit(struct kgem *kgem)
struct drm_i915_gem_execbuffer2 execbuf;
int ret, retry = 3;
- VG_CLEAR(execbuf);
+ memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = (uintptr_t)kgem->exec;
execbuf.buffer_count = kgem->nexec;
- execbuf.batch_start_offset = 0;
execbuf.batch_len = batch_end*sizeof(uint32_t);
- execbuf.cliprects_ptr = 0;
- execbuf.num_cliprects = 0;
- execbuf.DR1 = 0;
- execbuf.DR4 = 0;
execbuf.flags = kgem->ring | kgem->batch_flags;
- execbuf.rsvd1 = 0;
- execbuf.rsvd2 = 0;
if (DBG_DUMP) {
int fd = open("/tmp/i915-batchbuffers.dump",