radeong: do not emit a zero-sized command stream
Fixing a hardlock introduced in fcbd285e42 and
reproducible with piglit/bugs/fdo23489.
This commit is contained in:
committed by
Corbin Simpson
parent
4aed0944f4
commit
8505996430
@@ -108,6 +108,11 @@ static void radeon_flush_cs(struct radeon_winsys* winsys)
|
||||
{
|
||||
int retval;
|
||||
|
||||
/* Don't flush a zero-sized CS. */
|
||||
if (!winsys->priv->cs->cdw) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Emit the CS. */
|
||||
retval = radeon_cs_emit(winsys->priv->cs);
|
||||
if (retval) {
|
||||
|
||||
Reference in New Issue
Block a user