Wait for POLLIN instead of POLLOUT
POLLIN waits for the buffer to be ready for reading, POLLOUT waits for writing. In gamescope we're reading client buffers, so we need to use POLLIN. We were using POLLOUT to workaround an amdgpu bug, but that got fixed in kernel 5.15, so shouldn't be necessary anymore.
This commit is contained in:
parent
bdd08a7b44
commit
9f3e152d13
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ retry:
|
|||
assert( bFound == true );
|
||||
|
||||
gpuvis_trace_begin_ctx_printf( entry.commitID, "wait fence" );
|
||||
struct pollfd fd = { entry.fence, POLLOUT, 0 };
|
||||
struct pollfd fd = { entry.fence, POLLIN, 0 };
|
||||
int ret = poll( &fd, 1, 100 );
|
||||
if ( ret < 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue