<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault in pushbuf_kref when running the android emulator (qemu) on nv50"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92438#c30">Comment # 30</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Segfault in pushbuf_kref when running the android emulator (qemu) on nv50"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92438">bug 92438</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>(In reply to Jim Blandy from <a href="show_bug.cgi?id=92438#c29">comment #29</a>)
<span class="quote">> (In reply to Ilia Mirkin from <a href="show_bug.cgi?id=92438#c27">comment #27</a>)
> > Created <span class=""><a href="attachment.cgi?id=119323" name="attach_119323" title="deal with bind == 0">attachment 119323</a> <a href="attachment.cgi?id=119323&action=edit" title="deal with bind == 0">[details]</a></span>
> > deal with bind == 0
> >
> > Oh blast, you're right. Can't disable GL_ARB_direct_state_access, since it's
> > o(dummy_true). Try this mesa patch, which should fix it (but might break
> > things on nv30... need to figure that out).
>
> Okay, cool. Building Mesa from source isn't something I can dive into right
> now, but I'm hoping I'll have more time for this project in the near future.
> (I tried just whacking the domain value into *buffer with GDB and seeing if
> the code could proceed, but optimized code foiled me.)</span >
You can change your application to pretend that GL_ARB_direct_state_access
isn't enabled, which should prevent it from using glCreateBuffers() and the
glNamedBuffer* calls.
Should be easy enough to modify src/context/extensions.rs by e.g. introducing a
typo into the GL_ARB_direct_state_access string. Or doing a fixup
after-the-fact.
[As an aside, in src/buffer/alloc.rs, you appear to have at least one instance
that only checks for GL4.5 and not the ext as well... oops? I'd personally
recommend never checking for explicit GL versions and only looking at the exts.
You can also set the ext bools based on the GL versions.
if ctxt.version >= &Version(Api::Gl, 4, 5) {
ctxt.gl.NamedBufferSubData(self.id, offset_bytes as ...
]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>