<div dir="ltr"><div><div><div><div><div><div><div><div>Hello all,<br><br></div>Kristian and I were looking at this today, and there seems to be a substantial race in the way that we are doing texture locking.  In particular, we usually do the following:<br>
<br></div>Lock the hashmap<br></div>Find the texture object<br></div>Unlock the hashmap<br></div>Lock the texture object<br></div>Do Stuff<br></div>Unlock the texture object<br><br></div><div>As one particular example, _mesa_DeleteTextures does this in src/mesa/main/texobj.c:1208.  The problem is that the texture could be deleted in between unlocking the texture map and locking the texture object.  Is there something I'm missing here?  If not, how bad a problem is this?<br>
<br></div><div>Thanks,<br></div><div>--Jason Ekstrand<br></div></div>