mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
r600g: fix a possible crash in r600_adjust_gprs
This commit is contained in:
parent
ccecc08f79
commit
e330d90e91
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue