r600g: fix a possible crash in r600_adjust_gprs

This commit is contained in:
Marek Olšák 2011-08-18 22:59:22 +02:00
parent ccecc08f79
commit e330d90e91
1 changed files with 1 additions and 1 deletions

View File

@ -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)