mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 13:40:13 +01:00
indirect buffer fix.
This commit is contained in:
parent
c3fc479610
commit
fa696702b8
1 changed files with 2 additions and 2 deletions
|
|
@ -1533,9 +1533,9 @@ int r128_cce_indirect( DRM_OS_IOCTL )
|
|||
buf = dma->buflist[indirect.idx];
|
||||
buf_priv = buf->dev_private;
|
||||
|
||||
if ( buf->pid != current->pid ) {
|
||||
if ( buf->pid != DRM_OS_CURRENTPID ) {
|
||||
DRM_ERROR( "process %d using buffer owned by %d\n",
|
||||
current->pid, buf->pid );
|
||||
DRM_OS_CURRENTPID, buf->pid );
|
||||
return -EINVAL;
|
||||
}
|
||||
if ( buf->pending ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue