r600g: fix a possible crash in r600_adjust_gprs
This commit is contained in:
parent
ccecc08f79
commit
e330d90e91
|
@ -1676,7 +1676,7 @@ void r600_adjust_gprs(struct r600_pipe_context *rctx)
|
|||
if (rctx->chip_class >= EVERGREEN)
|
||||
return;
|
||||
|
||||
if (!rctx->ps_shader && !rctx->vs_shader)
|
||||
if (!rctx->ps_shader || !rctx->vs_shader)
|
||||
return;
|
||||
|
||||
if (rctx->ps_shader->shader.bc.ngpr > rctx->default_ps_gprs)
|
||||
|
|
Loading…
Reference in New Issue